Skip to content
Permalink
Browse files
user login - reset session id
  • Loading branch information
patkon committed Oct 19, 2021
1 parent 97f1dd0 commit 7942ff30f5aae48df4c6fef39635607881e2e60f
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/functions/func_userdata.php
@@ -241,6 +241,9 @@ function fc_user_login($user,$psw,$acp=NULL,$remember=NULL) {
*/

function fc_start_user_session($ud) {

/* reset session id */
session_regenerate_id(true);

$_SESSION['user_id'] = $ud['user_id'];
$_SESSION['user_nick'] = $ud['user_nick'];

0 comments on commit 7942ff3

Please sign in to comment.