I have just stumbled accross a majour problem with the use of sessions. When a browser is closed the session is destroyed is it not?
How can i get around this, so that if a browser is closed it either keeps the session active or, a way to run a piece of code as it is closing. So the browser auto detects its closing and logs the user out.