Welcome to WebmasterWorld Guest from 107.22.87.205

Forum Moderators: open

Message Too Old, No Replies

How do I delete a cookie that I have set with Javascript

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

10+ Year Member



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.
12:38 am on Feb 8, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month