]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/response/class_HttpResponse.php
Expiration is not a timestamp!
[shipsimu.git] / inc / classes / main / response / class_HttpResponse.php
index bc7693335eb858e09321834c7a58b9a06604a183..9a9273350485635d6c9d97f07e379983492eaa49 100644 (file)
@@ -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')