bradley525
asked on
javascript cookie Array
Hello I am using cookies to temporarily store some info for the browser session. I am using
to store the cookie in an array..I am not sure how to delete the cookie or delete the entire array using java script..Any help would be appreciated.
document.cookie="event["+id+"]="+id;
to store the cookie in an array..I am not sure how to delete the cookie or delete the entire array using java script..Any help would be appreciated.
ASKER
Thank you..I set the cookie to a negative time and it worked..thanks
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for bradley525's comment #a41418086
for the following reason:
Thank you this worked..
Accepted answer: 0 points for bradley525's comment #a41418086
for the following reason:
Thank you this worked..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you ..this worked well.
http://www.w3schools.com/js/js_cookies.asp
To delete a cookie just set its expire time to sometime in the past