homepage Welcome to WebmasterWorld Guest from 54.237.213.31
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Retrieve Cookie Expire Date
Get the cookie expiration date with Javascript.
yowza

10+ Year Member



 
Msg#: 3350172 posted 9:30 pm on May 25, 2007 (gmt 0)

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.

 

RonPK

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3350172 posted 10:21 am on May 26, 2007 (gmt 0)

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.

yowza

10+ Year Member



 
Msg#: 3350172 posted 6:54 pm on May 29, 2007 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved