[PHP] timer on sessions?

2002-07-17 Thread Jas
Not sure how to go about setting up a function to parse the date, hour, minutes, seconds, take the seconds and register them in a session var, then do a check on the session var (seconds) vs. the seconds var + 5*60 (or 5 minutes) to time out the session and force the user to log back in. My

Re: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
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.

Re: [PHP] timer on sessions?

2002-07-17 Thread Jas
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; session_register('tmp'); if ($tmp = $tme) { echo 'Time has not reached 5 minutes, session still valid'; } else { echo 'Timer has reached 5 minutes, you will need

Re[2]: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J I am not able to test from this machine so please tell me if I am right or J wrong on this: J $tmp = time(); J $tme = time() - 5*60; J session_register('tmp'); if ($tmp = $tme) { J echo 'Time has not reached 5 minutes, session still valid'; J } else { J echo 'Timer has reached 5

Re[3]: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J I am not able to test from this machine so please tell me if I am right or J wrong on this: J $tmp = time(); J $tme = time() - 5*60; J session_register('tmp'); if ($tmp = $tme) { J echo 'Time has not reached 5 minutes, session still valid'; J } else { J echo 'Timer has reached 5

Re: Re[2]: [PHP] timer on sessions?

2002-07-17 Thread Jas
So under the time() call, comparing it to a simple numerical value such as 300 it knows that you are talking about 300 seconds? Is that because it is a unix timestamp? I previously tried using date(s) to give me the seconds from today's date then tried the compare, so using time() will work

Re[4]: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J So under the time() call, comparing it to a simple numerical value such as J 300 it knows that you are talking about 300 seconds? Is that because it J is a unix timestamp? I previously tried using date(s) to give me the J seconds from today's date then tried the compare, so using time() will