Jump to content

Archived

This topic is now archived and is closed to further replies.

Genesis

How does one emulate a delayed query execution?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.