Ergh.
I'm having trouble wrapping my head round that statement...
I'm having a similar problem, i have a user database which people log into and then forget to log out of, so i've put in a datetime field which records when they were last on.
What i want it to do is to set their session to NULL automatically after a day, but i can't figure out the mysql syntax for working out how long people have been logged in for...
Jeez, i made that sound over-complicated.