Solved

Cookies and Active Server Pages

Posted on 1997-07-08
1
164 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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.

777 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