Re: Re: $_Session vs $_Cookie
| From: | Ng Hwee Hwee | Date: | Mon, 31 May 2004 10:10:31 +0000 |
| Subject: | Re: Re: $_Session vs $_Cookie | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34594@lists.php.net to get a copy of this message | ||
hi..
the situation is like this: my clients' $_SESSION gets destroyed even after
only a few seconds of inactivity! so, with my current setting for
gc_maxlifetime (1440), it should be more than enough to have their sessions
registered for the few minutes, right? thus, i deduce that the solution may
not lie in my gc_maxlifetime value?? please correct me if I'm wrong!
thanx thanx!
----- Original Message -----
From: "Torsten Roehr" <roehr@zilleon.com>
To: <php-db@lists.php.net>
Sent: Monday, May 31, 2004 5:33 PM
Subject: [PHP-DB] Re: $_Session vs $_Cookie
> "Ng Hwee Hwee" <hhwee@towa.com.sg> wrote in message
> news:002301c446ee$d1160ae0$7a01a8c0@hweehwee...
> > Hi all,
> > fyi, i'm using PHP4.2.2 and my session.gc_maxlifetime = 1440 and
> > session.gc_probability = 1. I will be upgrading to 4.3.6 in the near
> future.
>
> Your gc_maxlifetime setting is set to 1440 seconds which means 24 minutes.
> So every 24 minutes the garbage collection is checked if it should be
> deleted (based on gc_probability). Try increasing your gc_maxlifetime to a
> higher value, e.g. 43200 for 12 hours.
>
> Regards, Torsten