Re: timer on sessions?
| From: | Asmodean | Date: | Wed, 17 Jul 2002 15:44:08 +0000 |
| Subject: | Re: timer on sessions? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108102@lists.php.net to get a copy of this message | ||
J> Not sure how to go about setting up a function to parse the date, hour,
J> minutes, seconds, take the seconds and register them in a session var, then
J> do a check on the session var (seconds) vs. the seconds var + 5*60 (or 5
J> minutes) to time out the session and force the user to log back in. My
J> problem is finding the correct way to check the seconds in php. Any help or
J> pointers is appreciated.
J> Jas
time() will give you a UNIX timestamp. Use it to do the math.
--
Best regards,
Asmodean mailto:asmodean@lka.nu