What's the best or recommended way of sweeping users from MySQL on the
hour or half hour or other?

To keep things portable i was thinking about having each login sweep the
db, so every is sweeping for everyone else? But that's kinda dumb. Then i
came up with a cron job, but that will be admin dependent. 

What I've done so far is insert a time() into the whoz_logged_on table and
bring it out for comparison on each page refresh in order to logout a user
after 30 mins of inactivity, but I don't like that either.

Is there a common way to do this? As many PHP dbs as there are it's gotta
be a FAQ. 

Thanks,

John


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to