Welcome to WebmasterWorld Guest from 54.159.214.27

Forum Moderators: open

Retrieve Cookie Expire Date

Get the cookie expiration date with Javascript.

   
9:30 pm on May 25, 2007 (gmt 0)

10+ Year Member



Anyone know how to get the cookie expiration date with Javascript? Is this even possible? I've looked for hours and haven't found anything.
10:21 am on May 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It seems to be a write-only property. The browser of course reads the expiration date, in order to decide whether or not to purge the cookie. For some reason the date is not passed on to the scripting engine.
6:54 pm on May 29, 2007 (gmt 0)

10+ Year Member



Thanks Ron. Yeah, that's how it appears to me too. It just seems odd that the expiration date wouldn't be passed, especially since you have the ability to set or change it.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month