Some browsers (Firefox, Chrome) by design do not clear session cookies when you close them if you set some kind of memory switch (for example, in FF go to Options-> General-> When Firefox start-> Show my windows and last time tabs). This is a problem for our client (government agency ...), while I have absolute control over the http server, I have no control over the browser settings. Scenario - they are used to share computer accounts, however they should not be able to exchange accounts on the Internet. Just closing the browser should kill the session, not paying attention to the browser settings.
Is there an elegant way to ensure this?
Currently, the only solution that comes to my mind is some kind of dead person switch (change cookies to only live for one minute (encrypted timestamp on the server side), and on each page there is javascript "pinger" that will within 20 minutes ping, every one and a half minutes, a “session extension” handler on the server (the login session should be 20 minutes, with expiration).
source share