summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authormichael pereira2011-04-15 15:30:15 +0200
committermichael pereira2011-04-15 15:30:15 +0200
commitfccae299bf037a73197c16d778a03cc1bcf5e23e (patch)
tree57475f9a0621498e04c9807981a37abb2b681ae3 /public
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-fccae299bf037a73197c16d778a03cc1bcf5e23e.tar.gz
pbs2-fccae299bf037a73197c16d778a03cc1bcf5e23e.tar.xz
pbs2-fccae299bf037a73197c16d778a03cc1bcf5e23e.zip
Ticket #212 Cookie Lifetime wird jetzt bei fbgui auf unbegrenzt gesetzt...
Diffstat (limited to 'public')
-rw-r--r--public/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index 02d355e..9c54b9c 100644
--- a/public/index.php
+++ b/public/index.php
@@ -23,7 +23,10 @@ APPLICATION_PATH . '/configs/application.ini'
);
// Set Session lifetime
-Zend_Session::setOptions(array('cookie_lifetime' => '3600'));
+if(stristr($_SERVER['HTTP_USER_AGENT'],'prebootGUI'))
+ Zend_Session::setOptions(array('cookie_lifetime' => '3600'));
+else
+ Zend_Session::setOptions(array('cookie_lifetime' => null));
// Run bootstrap
$application->bootstrap()