2013年12月10日星期二

IE8 click Exit button, let cookie expired js

This is the background : the system is doing , there are two users with different permissions .
After a user logs in , click Exit , when the next user logs in, it will have a user has permissions , the permissions regardless of who logged in is large or small .
So now very tangled issue , especially to find a cookie can effectively allow expired js, in the IE8 browser to be easy , because I checked a js only available in IE6. Ask you to help it, sudden death
------ Solution - -------------------------------------------
document.cookie = yourCookieName + "=; path = /; expires = Thu, 01-Jan-70 00:00:01 GMT";
------ For reference only - --------------------------------------
really second Shen ah == !

their top up ~ ~ up ~ ~
------ For reference only ---------------------- -----------------
seconds Shen ah == !

their top up ~ ~ up ~ ~
------ For reference only ---------------------- -----------------

No, this method is easy to say in IE6 , IE8 seems to die
------ For expires reference only ---------------------------------------
I understand, they are not cookie problem, but html file caching problem , although no one answered , or knot paste it
------ For reference only ------------------ ---------------------
did not know what was later to solve the same problems encountered here

没有评论:

发表评论