jquery - How to clear cookies in javascript without keeping any expiry time -


this question has answer here:

how clear cookies out keeping expiry time.

i have created cookie this

document.cookie = "visited=yes"; 

i need remove cookie.

how can that..?

thanks in advance

usually update cookies expiry time delete it.

document.cookie = "expires=thu, 01 jan 1970 00:00:00 gmt"; 

you can write empty cookie reset it's values:

document.cookie = "key="; 

http://www.w3schools.com/js/js_cookies.asp


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -