Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you Expire a cookie more than once?

Status
Not open for further replies.

CrimsonDiva

Programmer
Sep 22, 2000
30
US
Hi,

I'm having MAJOR problems expiring my cookies. When a user logs on to our site cookies are created like below:
response.cookies("htc")("UID")=4
response.cookies("htc").expires = DateAdd("h",4,Now())

When the user tries to log out BEFORE the 4 hours is up, I try to re-set the cookie expiration, but it doesn't work. Cookie still has the expiration date of 4 hours in the future.

response.cookies("htc").expires = Date - 1000

Why is this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top