Jump to content


Photo

How does one emulate a delayed query execution?


  • Please log in to reply
1 reply to this topic

#1 Genesis

Genesis
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 05 November 2003 - 09:44 AM

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?

#2 Genesis

Genesis
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 06 November 2003 - 12:09 PM

bumparooni :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users