Store created date of cookie
This commit is contained in:
parent
a1b3d132bd
commit
68717f0df6
|
@ -22,7 +22,10 @@ class CacheCookie {
|
||||||
* Store the current cookie in the cache
|
* Store the current cookie in the cache
|
||||||
*/
|
*/
|
||||||
public function store($mglnr) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->set($mglnr, $cookie);
|
$this->set($mglnr, $cookie['cookie']);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue