You are here: Re: [PHP] Session expires randomly « PHP « IT news, forums, messages
Re: [PHP] Session expires randomly

Posted by Kirk.Johnson on 09/02/05 20:20

> On Fri, 2 Sep 2005, Mauricio Pellegrini wrote:
>
> > Hi, I have this problem , When I start a Session everything seems to
be
> > ok but sometimes with no reason the session vanishes.
> >
> > All settings are default , I mean session_cache_expire is 180 min.
> > I understand that this setting should make sessions last for at least
3
> > hours but in my case it seems not to be true since the real duration
> > varies from 20 minutes to an hour

I think the parameter you need to look at in php.ini is
session.gc_maxlifetime. It sets the session lifetime, not
session_cache_expire. The default lifetime is probably 1440 seconds,
roughly 20 minutes, so the behavior you are seeing is completely normal -
it's all working as it should.

Kirk

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация