diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-26 09:12:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-26 09:12:44 +0100 |
commit | 529fc750b31ce1b55596f8bb0f4377fbe2dcaa94 (patch) | |
tree | 04301a73db69a822531ac3b6767523428fe7ff97 | |
parent | 0d42b212003ccdf9ece7a590ebd8d9b4a01caff8 (diff) | |
parent | 09390a50cdc168197a5b1362c0c50ee5d5da400b (diff) | |
download | Shaarli-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.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |