how to end a session immediately after the user closes the browser window?
You can't - there is no way for the server to know when the client closes their browser. All you can do is set a sensible timeout and wait for it to expire.<BR><BR>Dunc
YES you can.<BR><BR>Use response.IsclientConnected. Depending on the results,<BR>kill the session or leave well alone !!!<BR><BR>Cheers,<BR><BR>IQ