Solved

Cookies and Active Server Pages

Posted on 1997-07-08
1
162 Views
Last Modified: 2013-12-25
I am using Cookies with Active Server Pages to save client information.  I use the Response.Cookies("name")="Joe" to write the cookie and Name=Request.Cookies("name") to read the cookie.  Everything works fine accessing the cookie info within a session, but if the client closes his browser and comes back, the cookie info is lost.  I've played with the Response.Cookies.Expires=nn code, which makes the cookies not work at all.

So how does one write a semi-permanent cookie that can be accessed at a later time with ASP/VBScript? Or at least one that expires at a given time in the future?

Thanks - eric@txhwy.com
0
Comment
Question by:ebuescher
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
ID: 1854413
Response.Cookies.Expires should be in GMT format.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now