RE: [PHP] Session not time out if server has NO visit in 30 minut es?
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 22 Nov 2000 22:00:17 +0000 |
| Subject: | RE: [PHP] Session not time out if server has NO visit in 30 minut es? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26735@lists.php.net to get a copy of this message | ||
On Fri, 17 Nov 2000, Joss Shen wrote:
> Hi,
>
> I don't use MySQL (I use Oracle instead), but I certainly could learn
> something from your code. Can you share that with me?
>
> Thanks,
> Joss
>
> > -----Original Message-----
> > From: Ignacio Vazquez-Abrams [SMTP:ignacio@openservices.net]
> > Sent: Wednesday, November 15, 2000 9:17 PM
> > To: Joss Shen
> > Cc: Jason Murray; php-general@lists.php.net
> > Subject: RE: [PHP] Session not time out if server has NO visit in 30
> > minut es?
> >
> > On Wed, 15 Nov 2000, Joss Shen wrote:
> >
> > > Actually I found IE does not translate timezone. My server is in
> > PST(-8).
> > > But my PC (browser) is in GMT. It's correct in Netscape, but not in IE.
> > Is
> > > this Microsoft IE's problem?
> > >
> > > Is there a way to work around of it? Actually this brings a good
> > question,
> > > how about if the server time is not accurate? I think set cookie time is
> > not
> > > a good way to maintain the 30 minutes timeout.
> > >
> > > Is there any other mechanism in PHP or Apache to expire a session which
> > does
> > > not have activities for 30 minutes, without involving client side
> > cookie?
> > >
> > > Thanks again.
> > > -Joss
> > >
> >
> > Well, if you have a MySQL server handy, I have a small class that I've
> > written that I use for sessions. With a little tinkering it could be just
> > what you're looking for.
> >
> > --
> > Ignacio Vazquez-Abrams <ignacio@openservices.net>
>
Here's the code as well as the SQL DDL statements for the table. Yes,
there are a lot of parameters in the constructor. No, I don't mind if you
remove some :)
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>