Session cookie setting being set while session is active (#1406)

Session cookie setting being set while session is active
This commit is contained in:
ArthurHoaro 2020-01-26 09:12:44 +01:00 committed by GitHub
commit 529fc750b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,7 +243,9 @@ if (isset($_POST['login'])) {
}
// Send cookie with the new expiration date to the browser
session_destroy();
session_set_cookie_params($expirationTime, $cookiedir, $_SERVER['SERVER_NAME']);
session_start();
session_regenerate_id(true);
// Optional redirect after login: