Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
user login - reset session id
Browse files Browse the repository at this point in the history
  • Loading branch information
patkon committed Oct 19, 2021
1 parent 97f1dd0 commit 7942ff3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/functions/func_userdata.php
Expand Up @@ -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'];
Expand Down

0 comments on commit 7942ff3

Please sign in to comment.