Session: change cookie lifetime from "until browser is closed" to 14 days
This commit is contained in:
parent
202e263ea7
commit
682aaab15e
@ -10,6 +10,9 @@ class Session
|
|||||||
{
|
{
|
||||||
public static function start()
|
public static function start()
|
||||||
{
|
{
|
||||||
|
session_set_cookie_params([
|
||||||
|
'lifetime' => 24 * 3600 * 14 // 14 days
|
||||||
|
]);
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
// Resuming an existing session? Check what we know!
|
// Resuming an existing session? Check what we know!
|
||||||
|
Loading…
Reference in New Issue
Block a user