From 66773c6e6f2ce6e2aa32f24bddabb34b6d150408 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 14 Jun 2008 19:24:34 +0000 Subject: [PATCH] Expiration is not a timestamp! --- inc/classes/main/response/class_HttpResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.39.2