aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-01-26 09:12:44 +0100
committerGitHub <noreply@github.com>2020-01-26 09:12:44 +0100
commit529fc750b31ce1b55596f8bb0f4377fbe2dcaa94 (patch)
tree04301a73db69a822531ac3b6767523428fe7ff97
parent0d42b212003ccdf9ece7a590ebd8d9b4a01caff8 (diff)
parent09390a50cdc168197a5b1362c0c50ee5d5da400b (diff)
downloadShaarli-529fc750b31ce1b55596f8bb0f4377fbe2dcaa94.tar.gz
Shaarli-529fc750b31ce1b55596f8bb0f4377fbe2dcaa94.tar.zst
Shaarli-529fc750b31ce1b55596f8bb0f4377fbe2dcaa94.zip
Session cookie setting being set while session is active (#1406)
Session cookie setting being set while session is active
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index a39fc762..6a82d571 100644
--- a/index.php
+++ b/index.php
@@ -243,7 +243,9 @@ if (isset($_POST['login'])) {
243 } 243 }
244 244
245 // Send cookie with the new expiration date to the browser 245 // Send cookie with the new expiration date to the browser
246 session_destroy();
246 session_set_cookie_params($expirationTime, $cookiedir, $_SERVER['SERVER_NAME']); 247 session_set_cookie_params($expirationTime, $cookiedir, $_SERVER['SERVER_NAME']);
248 session_start();
247 session_regenerate_id(true); 249 session_regenerate_id(true);
248 250
249 // Optional redirect after login: 251 // Optional redirect after login: