Re: [PHP] Need a way to automate user logout

2004-02-07 Thread Lowell Allen
> I used cron to do this as well; but i devised a much simpler, elegant > solution that is cross-browser and event-based and not schedule-based. > > I basically have a javascript include file that instantiates a function that > counts down in T-minus 10 minutes fashion. at 9:30 the browser pops a

Re: [PHP] Need a way to automate user logout

2004-02-07 Thread Phillip Jackson
I used cron to do this as well; but i devised a much simpler, elegant solution that is cross-browser and event-based and not schedule-based. I basically have a javascript include file that instantiates a function that counts down in T-minus 10 minutes fashion. at 9:30 the browser pops a window an

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread Christian Calloway
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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > One way is to save the time of last access every time a user requ

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread John Nichel
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 loggi

RE: [PHP] Need a way to automate user logout

2004-02-05 Thread craig
> 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 you will want to use the cron command. run 'man cron' at a shell prompt to get the manual page that will explain the finer points. =) HTH, Craig > -- > PHP General Mailing

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread Lucas Gonze
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 ho