Skip to main content
October 9, 2008
Question

Killing User Sessions upon closing window

  • October 9, 2008
  • 1 reply
  • 342 views
How can we kill the user session people if people just go in and close the window by hitting x on the top of the browser? Any feedback and help would be greatly appreciated.
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    October 9, 2008
    Technically, you can't kill a user's session upon them closing the window.

    What you _can_ do is use J2EE session tracking, or a transient cookie that gets deleted when the browser quits. That still doesn't kill the session when they close the window. The session remains active until the timeout time has elapsed.