i'm using cookies on a few occasions to store some basket information... but although i set an expire date into the future, this seems to get reset to 01 January 0001 on simply refreshing the browser...
any ideas?
i'm using cookies on a few occasions to store some basket information... but although i set an expire date into the future, this seems to get reset to 01 January 0001 on simply refreshing the browser...
any ideas?
answered my own question, can i thank myself?!
Changing a Cookie's Expiration Date
The browser is responsible for managing cookies, and the cookie's expiration time and date help the browser manage its store of cookies. Therefore, although you can read the name and value of a cookie, you cannot read the cookie's expiration date and time. When the browser sends cookie information to the server, the browser does not include the expiration information. (The cookie's Expires property always returns a date-time value of zero.) If you are concerned about the expiration date of a cookie, you must reset it, which is covered in the "Modifying and Deleting Cookies" section.
LINK: http://msdn2.microsoft.com/en-us/library/ms178194.aspx
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks