Browse Source

it was probably not the best idea to use session_regenerate_id() right after session_start(), duh

Andrew Dolgov 5 months ago
parent
commit
77aebd7e4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/functions.php

+ 1 - 1
include/functions.php

@@ -718,8 +718,8 @@
 					session_commit();
 				}
 
-				session_start();
 				session_regenerate_id(true);
+				session_start();
 
 				$_SESSION["uid"] = $user_id;
 				$_SESSION["version"] = VERSION_STATIC;