Re: Re: $_Session vs $_Cookie
| From: | Ng Hwee Hwee | Date: | Tue, 01 Jun 2004 02:21:08 +0000 |
| Subject: | Re: Re: $_Session vs $_Cookie | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34604@lists.php.net to get a copy of this message | ||
Hi Sukanto,
I'm glad I'm not alone. :o) I'm working on an intranet, thus i can ask my
staff to enable their cookies.. but this is really not the best way.
Right now, I am trying to convert all my sessions to cookies because this is
a faster solution to solve my urgent problem. But I think as recommended by
Torsten and the others, maybe we should use the database to save our
sessions.. I do not have time to explore the PEAR packages but they look
like a good long-term solution.
By the way, do you use VPN?
Hwee
----- Original Message -----
From: "Sukanto Kho" <starofflame@hotmail.com>
To: "Ng Hwee Hwee" <hhwee@towa.com.sg>
Sent: Tuesday, June 01, 2004 9:31 AM
Subject: Re: [PHP-DB] Re: $_Session vs $_Cookie
> Hi Hwee,
>
> I experience such problem too.. I'm hosting my web at spore.
>
> Sometimes not all the time ...my session just deleted from web server...
>
> I also guest that its a weak network that cause such problem.
>
> Otherwise I dont get any ideas.
>
> So whats ur solution then?? u change all session to cookie (I prefer not
to
> use cookie)
>
> >From Flame Xie xi Chuan
>
> ----- Original Message -----
> From: "Ng Hwee Hwee" <hhwee@towa.com.sg>
> To: "DBList" <php-db@lists.php.net>
> Sent: Monday, May 31, 2004 5:10 PM
> Subject: Re: [PHP-DB] Re: $_Session vs $_Cookie
>
>
> > 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!