From c9beed8839a04b5a170f2aca90b86623d097c5ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 14 Jun 2008 19:34:37 +0000 Subject: [PATCH] Now really 2 hours cookie lifetime (was: 2 days) --- inc/classes/main/response/class_HttpResponse.php | 5 +++++ inc/config.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/classes/main/response/class_HttpResponse.php b/inc/classes/main/response/class_HttpResponse.php index 9a92733..5a21d89 100644 --- a/inc/classes/main/response/class_HttpResponse.php +++ b/inc/classes/main/response/class_HttpResponse.php @@ -244,6 +244,11 @@ class HttpResponse extends BaseFrameworkSystem implements Responseable { } // END - if // Set the cookie + //echo $cookieName."=".$cookieValue. + // ", expire=".(time()+$this->getConfigInstance()->readConfig('cookie_expire')). + // ", path=".$this->getConfigInstance()->readConfig('cookie_path'). + // ", domain=".$this->getConfigInstance()->readConfig('cookie_domain'). + // ", ssl=".$this->getConfigInstance()->readConfig('cookie_ssl'); setcookie( $cookieName, $cookieValue, diff --git a/inc/config.php b/inc/config.php index a5b19d4..02302f2 100644 --- a/inc/config.php +++ b/inc/config.php @@ -222,7 +222,7 @@ $cfg->setConfigEntry('post_registration_action', "LoginAfterRegistrationAction") $cfg->setConfigEntry('user_class', "User"); // CFG: COOKIE-EXPIRE -$cfg->setConfigEntry('cookie_expire', 60*60*24*2); // Two hours! +$cfg->setConfigEntry('cookie_expire', 60*60*2); // Two hours! // CFG: COOKIE-PATH $cfg->setConfigEntry('cookie_path', dirname($_SERVER['SCRIPT_NAME']) . "/"); -- 2.39.5