How to dynamically, via javascript, delete a session cookie, without manually restarting the browser?
I read somewhere that session cookie is retained in browser memory and will be removed when the browser is closed.
// sessionFooCookie is session cookie
// this code does not delete the cookie while the browser is still on
jQuery.cookie('sessionFooCookie', null);
Thanks.
More Info: The code snippet above is a
javascript code snippet, using jQuery
and its jQuery.cookie plugin.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…