I am not able to test from this machine so please tell me if I am right or
wrong on this:
$tmp = time();
$tme = time() - 5*60;
if ($tmp >= $tme) {
    echo 'Time has not reached 5 minutes, session still valid';
} else {
    echo 'Timer has reached 5 minutes, you will need to log back in to
continue.'; }

"Asmodean" <[EMAIL PROTECTED]> wrote in 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,
> J> do a check on the session var (seconds) vs. the seconds var + 5*60 (or
> 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:[EMAIL PROTECTED]

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

Reply via email to