News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

FinalConcept.com.au:
Symfony Session Login Timeout
July 06, 2010 @ 12:11:32

On the FinalConcept.com.au blog there's a new post from Adam Pullen showing how to solve a common issue with user logins and timeouts in Symfony applications (especially those using something like sfGuard).

Symfony uses the PHP session management sub-system to store tempoary user specific data. When using the sfDoctrineGuardPlugin, or any other application guard, the timeout and lastRequest data are stored. [...] Since PHP has no clue of Symfony it will happily delete all session files that are older than the gc_maxlifetime value. This causes Symfony to logout the user. The user then has to login again. For all "day long apps" that are only used periodically (like time tracking software) this can cause some greif for the user.

His solution is to change the gc_maxlifetime setting in your php.ini file (or just the ini settings) to something higher than what Symfony will use. This can be done directly in your application too by defining the ini value on the fly in your factories.yml config file.

0 comments voice your opinion now!
symfony tutorial session login timeout gcmaxlifetime


blog comments powered by Disqus

Similar Posts

9Lessons: User Signup using Facebook Data

PHPBuilder.com: Using SPL Iterators in PHP to Interact with Different Data Types

The Bakery: Six New Articles/Tutorials Posted

Gennady Feldman's Blog: Installing Oracle Instant Client 11g and PECL OCI8 (Part 2)

Dave Marshall's Blog: Log memory usage using declare and ticks in PHP


Community Events





Don't see your event here?
Let us know!


bugfix list language developer wordpress code threedevsandamaybe laravel install introduction library community interview podcast configure series release application api unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework