Session cookie setting being set while session is active (#1406)
Session cookie setting being set while session is active
This commit is contained in:
commit
529fc750b3
1 changed files with 2 additions and 0 deletions
|
@ -243,7 +243,9 @@ function isLoggedIn()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send cookie with the new expiration date to the browser
|
// Send cookie with the new expiration date to the browser
|
||||||
|
session_destroy();
|
||||||
session_set_cookie_params($expirationTime, $cookiedir, $_SERVER['SERVER_NAME']);
|
session_set_cookie_params($expirationTime, $cookiedir, $_SERVER['SERVER_NAME']);
|
||||||
|
session_start();
|
||||||
session_regenerate_id(true);
|
session_regenerate_id(true);
|
||||||
|
|
||||||
// Optional redirect after login:
|
// Optional redirect after login:
|
||||||
|
|
Loading…
Reference in a new issue