jarret.austin@gmail.com wrote:[color=blue]
> Hi all
>
> I'm trying to set my sessions to be deleted after 60 seconds of
> inactivity (for testing), however they seem to be deleted after 60
> seconds regardless of activity.
>
> I have the following in my php.ini file:
>
> session.gc_maxlifetime = 60
> session.gc_probability = 100
>
> I have a login check script on every page that prints the current time
> to the session, however my session is *always* deleted after 60
> seconds, not after 60 inactive seconds.
>
> It is my understanding that session.gc_maxlifetime is the number of
> seconds an inactive session is allowed to live...is this correct?[/color]
Nope! From my PHP 5 php.ini:
-----
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
-----
It appears to have nothing to do with (in)activity.
NM
--
convert UPPERCASE NUMBER to a numeral to reply