RE: [PHP] Sessions Timing Out Too Often

From: Date: Wed, 19 Feb 2003 02:21:07 +0000
Subject: RE: [PHP] Sessions Timing Out Too Often
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136099@lists.php.net to get a copy of this message
> I'm finding that my sessions seem to be timing out fairly quickly. For > example, in a little forum I wrote with PHP, people are telling me that if > they type a long message and click Submit, they are taken to the Login > page > because their session obviously timed out, and they loose their posts in > the > forum. I do have a "remember me" feature that uses a cookie, but, not all > visitors are using it, and they are the ones experiencing this problem. > > Is there a way to extend session time, and is that the best way to reduce > this problem from happening to most members? You can change the session.gc_maxlifetime in php.ini to a larger value. That is the number of seconds after which inactive session files will be seen as garbage. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#136099) next »