diff options
author | michael pereira | 2011-10-27 16:14:57 +0200 |
---|---|---|
committer | michael pereira | 2011-10-27 16:14:57 +0200 |
commit | 6a7203155702a53c0c5225e82010562c57fc7de3 (patch) | |
tree | 310bc0c80a16bdba75f69432bc0a80aa58311aa6 /public | |
parent | vesamenu (diff) | |
download | pbs2-6a7203155702a53c0c5225e82010562c57fc7de3.tar.gz pbs2-6a7203155702a53c0c5225e82010562c57fc7de3.tar.xz pbs2-6a7203155702a53c0c5225e82010562c57fc7de3.zip |
session gc maxlifetime
Diffstat (limited to 'public')
-rw-r--r-- | public/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/index.php b/public/index.php index b5ec528..fe1701f 100644 --- a/public/index.php +++ b/public/index.php @@ -35,9 +35,10 @@ APPLICATION_PATH . '/configs/application.ini' // Set Session lifetime if(stristr($_SERVER['HTTP_USER_AGENT'],'prebootGUI')) Zend_Session::setOptions(array('cookie_lifetime' => null)); -else - Zend_Session::setOptions(array('cookie_lifetime' => '3600')); - +else{ + Zend_Session::setOptions(array('cookie_lifetime' => null)); + Zend_Session::setOptions(array('gc_maxlifetime' => '1800')); +} // Run bootstrap $application->bootstrap() ->run(); |