Re: Re: $_Session vs $_Cookie
| From: | Torsten Roehr | Date: | Mon, 31 May 2004 10:47:30 +0000 |
| Subject: | Re: Re: $_Session vs $_Cookie | ||
| References: | 1 2 3 4 5 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34598@lists.php.net to get a copy of this message | ||
"Ng Hwee Hwee" <hhwee@towa.com.sg> wrote in message
news:006201c446fa$97578480$7a01a8c0@hweehwee...
> i do not really experience this problem.. i can click through the links
> easily.. hmm.. your question sets me thinking.. do you think it has to do
> with some VPN thing? my system is an intranet system and the users log on
to
> it through a VPN.. do you think it will cut my sessions?!
I don't have any experience with VPNs. Does it work for you if you are
logging in via VPN?
>
> by the way, I saw this note on php.net under the gc_maxlifetime section:
>
> Note: If you are using the default file-based session handler, your
> filesystem must keep track of access times (atime). Windows FAT does not
so
> you will have to come up with another way to handle garbage collecting
your
> session if you are stuck with a FAT filesystem or any other fs where atime
> tracking is not available. Since PHP 4.2.3 it has used mtime (modified
date)
> instead of atime. So, you won't have problems with filesystems where atime
> tracking is not available.
Is your server running on Windows? Have you tried using a database as your
session container?
> do you think by upgrading it will solve all my problems?!
>
> thanx a million!!
>
> ----- Original Message -----
> From: "Torsten Roehr" <roehr@zilleon.com>
> To: <php-db@lists.php.net>
> Sent: Monday, May 31, 2004 6:19 PM
> Subject: Re: [PHP-DB] Re: $_Session vs $_Cookie
>
>
> > "Ng Hwee Hwee" <hhwee@towa.com.sg> wrote in message
> > news:005201c446f7$848fcea0$7a01a8c0@hweehwee...
> > > 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!
> >
> > You're right, the session should at least be active for the specified
> > gc_maxlifetime - no matter if the users click a link or not. So even if
> the
> > user clicks only once to start the session and then clicks again after
20
> > minutes the session should still be valid. If it's not I guess there is
> > something wrong on your server because the session should be alive even
if
> > the user is not requesting any pages. Do all users have this problem and
> do
> > you have it yourself?
> >
> > Torsten