From: Roland Häder Date: Sat, 14 Jun 2008 19:34:37 +0000 (+0000) Subject: Now really 2 hours cookie lifetime (was: 2 days) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c9beed8839a04b5a170f2aca90b86623d097c5ad;p=shipsimu.git Now really 2 hours cookie lifetime (was: 2 days) --- 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']) . "/");