- Set default Cookie expiry time to 8 hours
This commit is contained in:
1 parent
4f4443eb1a
commit
4fbf91e940
1 file changed
+2
-2
+2
-2
@@ -5,7 +5,7 @@ namespace Storage;
|
||||
class Cookie {
|
||||
|
||||
public array $options = [
|
||||
'expires' => 0,
|
||||
'expires' => (60*60*8), # Default to 8 hours now
|
||||
'path' => null,
|
||||
'domain' => null,
|
||||
'secure' => false,
|
||||
@@ -49,7 +49,7 @@ class Cookie {
|
||||
|
||||
$key = $this->normalizeKey($key);
|
||||
|
||||
$expires = ! $expires ? 0 : time() + (int) $expires;
|
||||
$expires = ! $expires ? 0 : (time() + $expires);
|
||||
|
||||
$_COOKIE[$key] = $value;
|
||||
|
||||
|
||||
Reference in new issue
Block a user