Fre adult cha mobile - Invalidating session on window close
What I want to do is to invalidate the session when the browser is closed or the user leaves the page.
This is only supposed to happen if the user previosly logged in (thats why put it in the authenticate action).
But, the function is also called when the user refreshes the page.
I have also considered using the interface Disposable Bean but its dispose() method is also called when the browser is refreshed.
No way is guaranteed to work (across all major browsers and their different versions).