Re: Re: $_Session vs $_Cookie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ng Hwee Hwee" <hhwee@xxxxxxxxxxx> wrote in message
news:006201c446fa$97578480$7a01a8c0@xxxxxxxxxxx
> 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@xxxxxxxxxxx>
> To: <php-db@xxxxxxxxxxxxx>
> Sent: Monday, May 31, 2004 6:19 PM
> Subject: Re:  Re: $_Session vs $_Cookie
>
>
> > "Ng Hwee Hwee" <hhwee@xxxxxxxxxxx> wrote in message
> > news:005201c446f7$848fcea0$7a01a8c0@xxxxxxxxxxx
> > > 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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux