From: Roland Häder Date: Sat, 14 Jun 2008 19:24:34 +0000 (+0000) Subject: Expiration is not a timestamp! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66773c6e6f2ce6e2aa32f24bddabb34b6d150408;p=shipsimu.git Expiration is not a timestamp! --- diff --git a/inc/classes/main/response/class_HttpResponse.php b/inc/classes/main/response/class_HttpResponse.php index bc76933..9a92733 100644 --- a/inc/classes/main/response/class_HttpResponse.php +++ b/inc/classes/main/response/class_HttpResponse.php @@ -247,7 +247,7 @@ class HttpResponse extends BaseFrameworkSystem implements Responseable { setcookie( $cookieName, $cookieValue, - $this->getConfigInstance()->readConfig('cookie_expire'), + (time() + $this->getConfigInstance()->readConfig('cookie_expire')), $this->getConfigInstance()->readConfig('cookie_path'), $this->getConfigInstance()->readConfig('cookie_domain'), $this->getConfigInstance()->readConfig('cookie_ssl')