Hi, i;ve almost completed my site, but just came across a huge bug involving sessions. When i log onto the site (once logged into the site you come to another screen with a link that opens up a popup window which is where my game is played from) the game is fine, all information is put into the correct parts of the database etc, and it runs fine. If i was then to just close down the windows without logging out properly, then login as someone else, all the previous sessions are still stored so the information goes into the wrong database's.
I have no idea how to fix this, and was wondering if their was some sort of script that could destroy the sessions if the user closed down the window.
Any help will be most grateful as the sites meant to be launched tomorrow!
Thanks