Can I send a GET request to a logout URL when a user closes a browser tab so that his session is destroyed?
EDIT:
This is actually a keepalive page. Users should keep this page open. It refreshes at TTL to keep the session active. However some users close the keepalive page and resume working. And yeah,, it's not scalable. So I have a TTL of 20min. I can't decrease the TTL as it increases load on server. If they close the page, I want them to be logged out.