hello again everyone,
I've just noticed a problem with my login/logout, and my sessions on my website..
Basically The login is fine..
When the user logs in I record the login by updating a column in our database to =1 when they logout I update it to say 0
The problem I'm having is when users don't logout.
If they don't logout via the logout button then the query to the database never gets run...
So my question is how can I say...
if session_timeout run script?
would it work to say onunload=(run my php function?) ??