Something?
|
Something I Didn't Really Understand In Your Logout Script: (In Bold Red)function logout() { time = new Date(); time.setTime(time.getTime() - 3600000); document.cookie = "login=guest; expires=" + time.toGMTString() + "; path=/"; history.go(); } Žq•ª Heaven doesn't want me and hell's to afraid I'll take over! |
Re: Something?
Link |
by
![]() |
time = new Date(); // makes a new variable of type Date // time.setTime(time.getTime() - 3600000); // sets the time variable to one day in the past // the time variable is given to the browser as the "expire-time" for the cookie, and since it is in the past; the cookie is eaten by the bit bucked (is deleted; oh im so clever!) ![]() ![]() ![]() |
Re: Something?
|
You know something Gendou, that is Extremely clever... Holy shit o.o; Žq•ª Heaven doesn't want me and hell's to afraid I'll take over! |