homepage Welcome to WebmasterWorld Guest from 54.197.130.16
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
How do I delete a cookie that I have set with Javascript
dreaming of nascar




msg:1491820
 11:28 pm on Feb 7, 2003 (gmt 0)

I am experimenting with cookies in Javascript and am able to set and read them, but after I do another set, I read it and the old information is in front of what I have just set. How do I delete a cookie that I have set and is it possible to overwrite the contents of a cookie's old values with the new values? Any information would be apprecated!
I hope that this makes sense. Thanks.

 

tedster




msg:1491821
 12:38 am on Feb 8, 2003 (gmt 0)

I don't do much with javascript cookies, but I believe you can set a new cookie with the same path and name -- but use an expires date that's already past. So your new cookie overwrites the original cookie, but then the browser will zap it because it's expired.

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