How to invalidate session when browser is closed?

Follow Icon
Edit IconEdit
Message IconMessage
Report IconReport

Available Answers: 1

Answer #1#
Tacoma, United States

You can use the unload event and send the logout request to the server. Or keep sending periodic requests to the server informing the user is still active. You need to set the session timeout , that is, the time after which current Session object will be invalidated.

(3)
Edit IconEdit
Comment IconComment
Report IconReport


Related Questions

Disclaimer

  1. Phone number or email id included in the answer(s) are not verified by us. Before calling on the mentioned number or sending an email do your own research and be confirm you calling or sending mail to right person or company.
  2. Answer(s) may contain affiliate links. By clicking such link, you will be redirected to third party website. If you make any purchase then the answer publisher or we may earn little amount of commission.