diff --git a/src/Cookies/CacheCookie.php b/src/Cookies/CacheCookie.php index 98f7a43..38518da 100644 --- a/src/Cookies/CacheCookie.php +++ b/src/Cookies/CacheCookie.php @@ -22,7 +22,10 @@ class CacheCookie { * Store the current cookie in the cache */ public function store($mglnr) { - Cache::forever("namicookie-{$mglnr}", $this->store->getCookieByName('JSESSIONID')->getValue()); + Cache::forever("namicookie-{$mglnr}", [ + 'cookie' => $this->store->getCookieByName('JSESSIONID')->getValue(), + 'created_at' => now(), + ]); } /** @@ -43,7 +46,7 @@ class CacheCookie { return false; } - $this->set($mglnr, $cookie); + $this->set($mglnr, $cookie['cookie']); return true; }