Just tell your server to allow the session lifetime to be 15 minutes

After 15 minutes of inactivity, the session will not exist.

Jim Lucas
----- Original Message -----
From: "Jeff Harris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 2:45 PM
Subject: Re: [PHP] how can I logout autamaitcally (using session)


> On Jul 2, 2003, "Hardik Doshi" claimed that:
>
> |Hi,
> |
> |You can add last_request_time variable into the
> |session when user logs into the system. Initially set
> |the time at which user logs in to the system. Now
> |every user click you need to check your
> |last_request_time with the current_time. If the
> |difference of last_request_time and current_time is
> |greater than the thresold limit you have decided (idle
> |time of user) than just logout that particular user
> |otherwise set the current_time to the
> |last_request_time and proceed..
> |
> |I hope the algorithm is clear to you.
> |
> |Let me know if u need any help
> |
> |thanks
> |
> |Hardik Doshi
> |
>
> I just saw a banking site that allows a 15 minute session. I'm guessing
> that the session time is set to 15 minutes for the cookies, and one frame
> contains a countdown clock. When the clock hits zero, it uses javascript
> to redirect to a page that removes the sessions and lets you log in again.
> I'm sure you might be able to recreate it to your needs (as long as they
> don't lay claim to a patent of a count down timer to end a session).
>
> Jeff
>
> --
> Registered Linux user #304026.
> "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
> Key fingerprint = 52FC 20BD 025A 8C13 5FC6  68C6 9CF9 46C2 B089 0FED
> Responses to this message should conform to RFC 1855.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to