Click here to Skip to main content
14,981,622 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
when browser closed how to kill the session example using

1 solution

There is no guaranteed way to do it. You can try using the window.onclose event in JavaScript or the jQuery unload() event,[^], but you shouldn't need to worry about it. When their session expires the session will be unloaded automatically.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900