aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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: