PDA

View Full Version : About Cookies



yarassa
June 15th, 2003, 05:55
How to set cookies with this option: when user close his/her browser the cookie expires...

Thanxs

ECTrimble20
June 17th, 2003, 14:49
I'm not certain but I belive when u make the body tag place OnExit='' or else its OnOut='' then run a routine to log the user out or expire the cookie in your case, something like OnExit='endcookie()' and just expirecookie cookie, I'm not certain of it but I think thats how its done.

CareBear
June 17th, 2003, 15:08
don't set an expiration on the cookie and it'll be tossed away once the user closes their browser

yarassa
June 20th, 2003, 10:04
ok thanks...