summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authormichael pereira2011-10-27 16:14:57 +0200
committermichael pereira2011-10-27 16:14:57 +0200
commit6a7203155702a53c0c5225e82010562c57fc7de3 (patch)
tree310bc0c80a16bdba75f69432bc0a80aa58311aa6 /public
parentvesamenu (diff)
downloadpbs2-6a7203155702a53c0c5225e82010562c57fc7de3.tar.gz
pbs2-6a7203155702a53c0c5225e82010562c57fc7de3.tar.xz
pbs2-6a7203155702a53c0c5225e82010562c57fc7de3.zip
session gc maxlifetime
Diffstat (limited to 'public')
-rw-r--r--public/index.php7
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();