diff options
-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: |