What I want to do is send a query to a database that will cause a user to be logged out after 15 minutes of the script being executed.
When the user loads a page, it sets \"available\" to 1 in the database, for that user. Fifteen minutes later, that user\'s \"available\" field should be set to 0 AUTOMATICALLY. If the page is refreshed again before that time, the timer should be reset to 15 minutes.
How might I go about doing this? Or is there another way to get this effect without having to delay the execution of a query?
How does one emulate a delayed query execution?
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users