diff options
author | Björn Geiger | 2011-03-31 20:34:01 +0200 |
---|---|---|
committer | Björn Geiger | 2011-03-31 20:34:01 +0200 |
commit | 4eaa5b19f76e74a4b1ec72d323971707947b0f30 (patch) | |
tree | 408586698e26632a427ace432025c001f5a28761 /public/index.php | |
parent | Checkboxen für Rechte beim erstellen einer Rolle (diff) | |
download | pbs2-4eaa5b19f76e74a4b1ec72d323971707947b0f30.tar.gz pbs2-4eaa5b19f76e74a4b1ec72d323971707947b0f30.tar.xz pbs2-4eaa5b19f76e74a4b1ec72d323971707947b0f30.zip |
Session Problem bei behoben
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/public/index.php b/public/index.php index a7ade9f..2848b9a 100644 --- a/public/index.php +++ b/public/index.php @@ -1,26 +1,31 @@ <?php - // Define path to application directory defined('APPLICATION_PATH') - || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); +|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define application environment defined('APPLICATION_ENV') - || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); +|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( - realpath(APPLICATION_PATH . '/../library'), - get_include_path(), +realpath(APPLICATION_PATH . '/../library'), +get_include_path(), ))); /** Zend_Application */ require_once 'Zend/Application.php'; -// Create application, bootstrap, and run +// Create application $application = new Zend_Application( - APPLICATION_ENV, - APPLICATION_PATH . '/configs/application.ini' +APPLICATION_ENV, +APPLICATION_PATH . '/configs/application.ini' ); + +// Set Session lifetime +Zend_Session::setOptions(array('cookie_lifetime' => '3600')); +Zend_Session::setOptions(array('gc_maxlifetime' => '3600')); + +// Run bootstrap $application->bootstrap() - ->run();
\ No newline at end of file +->run(); |