CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 prevent cookie from being rewritten???

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.