Re: Need a way to automate user logout

From: Date: Thu, 05 Feb 2004 16:59:44 +0000
Subject: Re: Need a way to automate user logout
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176947@lists.php.net to get a copy of this message
I am already doing this, but the problem is is if the user closes their browser and then comes back 2 days later, I have no choice but to debit that time. "Lucas Gonze" <lgonze@panix.com> wrote in message news:Pine.NEB.4.58.0402051650570.18194@panix2.panix.com... > > One way is to save the time of last access every time a user requests a > page, then poll to find users for whom now() - last_access_time > > TIMEOUT. > > - Lucas > > On Thu, 5 Feb 2004, Christian Calloway wrote: > > > Damn stateless nature of HTTP, hey everyone, can someone point me or give me > > an idea on how I would automatically log out (destroy user sessions and make > > note of it in the database) on some type of schedule. I have designed a > > security system that depends upon people logging out to determine the amount > > of time they have accumalated on their accounts. Of course people do not > > always (never) do this, so I need a way to do it for them. We are running > > redhat linux, I am sure there is a way to say run a certain script at a > > certain time blah blah etc etc. But I am only a programmer, and am > > absolutely clueless on the finer points of nix. I can write a script in > > perl, php, java, u name it, but how do I have it run on a set schedule? > > Thanks > > > > Christian > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#176947) next »