After a user has logged in , a session is started (in java based application)
The session is destroyed after user clicked :Log out
when the user forgets to logout and closes the browser immediately, the session still exists because when the user oepn the browser again and comes back to the site he/she is still logged in.
I want the session to be destroyed when the user closes the browser immediately.
Is there a way to destroy a session. ( I have seen ,when you open any banking website and
close the browser ,it immediately logout from that session)