Forums

ASP

This topic is locked

Cookies

Posted 22 years ago
1
has voted
22 years ago water Youri Winkelman posted:
I have to right a login script with cookies. So a person can give information about himself and this will be stored into a cookie so that nextime the person can login.

Does anybody now how i can do this?

Replies

Replied 22 years ago
22 years ago Dave Blohm replied:
Response.Cookies ("CookieName" = Your_Variable
Response.Cookies ("CookieName".Expires = DateSerial(2020,1,1)

' Enless you anticipate your site being used in its current form in 2020(and even I'm not that egotistical), the above expiration date should equate to making this an eternal cookie

Hope this helps...


Doc
Rangewalk Digital Studios

Reply to this topic