I'm not sure if this should be posted in the JavaScript Forum or the .Net Forum, so I'll post in both!
My .Net Web Application Sets a couple of Session Variables and also sets a cookie. When the user logs out, the Session Variables and cookies are both wiped out; however, if the user merely closes the browser, I need to be able to delete both the cookie and the Session Variables immediately (and not wait 'til they time out).
How (and on what event) can I do this? I looked at the JavaScript onUnload event, but that event fires everytime you leave the page...I need an event when the user clicks the 'X' in the upper right-hand corner to close the browser!
Oh - I need it in both IE & Netscape.
Thanks for any suggestions you have to offer!
My .Net Web Application Sets a couple of Session Variables and also sets a cookie. When the user logs out, the Session Variables and cookies are both wiped out; however, if the user merely closes the browser, I need to be able to delete both the cookie and the Session Variables immediately (and not wait 'til they time out).
How (and on what event) can I do this? I looked at the JavaScript onUnload event, but that event fires everytime you leave the page...I need an event when the user clicks the 'X' in the upper right-hand corner to close the browser!
Oh - I need it in both IE & Netscape.
Thanks for any suggestions you have to offer!