From: <gem...@li...> - 2011-11-18 15:12:05
|
Revision: 237 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=237&view=rev Author: michieltcs Date: 2011-11-18 15:11:59 +0000 (Fri, 18 Nov 2011) Log Message: ----------- Refs #453 - set default session timeout to 30 minutes Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-18 14:18:45 UTC (rev 236) +++ trunk/library/classes/GemsEscort.php 2011-11-18 15:11:59 UTC (rev 237) @@ -58,6 +58,14 @@ private $_copyDestinations; private $_startFirebird; + + /** + * Lifetime of the session (determines the expiration of the session cookie(s)) + * Defaults to 1800 seconds = 30 minutes, you override this in your own + * Escort class + * @var int + */ + protected $_sessionLifetime = 1800; /** * The menu variable @@ -89,6 +97,9 @@ $firebug = $application->getOption('firebug'); $this->_startFirebird = $firebug['log']; + + // expire the session after 30 minutes + Zend_Session::rememberMe($this->_sessionLifetime); $sessionOptions['name'] = GEMS_PROJECT_NAME_UC . 'SESSID'; $sessionOptions['cookie_path'] = strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |