Jeremy
|
Posted: 01/23/2002, 2:37 PM |
|
Hello all. I am using the following code to write a cookie to a users computer.
Response.Cookies ("mycookie")("userid") = Session.SessionID
Response.Cookies ("mycookie")("userrights") = 1
Response.Cookies ("mycookie").Expires = DATE + 2
Every time I close my browser and reconnect to the site the cookies is rewritten with a new ID.....anyway to have it check to see if the cookie is expired or not? THanks.
Jeremy
|
|
|
Alex Alexapolsky
|
Posted: 01/24/2002, 1:40 AM |
|
Check if request.Cookies("mycookie")("userid") is Empty
and if it's not then compare now() withj ("mycookie").Expires
|
|
|
|