aboutsummaryrefslogtreecommitdiff
path: root/src/flog.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/flog.php')
-rw-r--r--src/flog.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/flog.php b/src/flog.php
index 5eea441..5aef8e0 100644
--- a/src/flog.php
+++ b/src/flog.php
@@ -133,6 +133,9 @@ function DBLogInContest($name,$pass,$contest,$msg=true) {
}
$a = DBUserInfo($b["contestnumber"], $b["contestlocalsite"],$a['usernumber'],null,false);
$_SESSION['usertable'] = $a;
+ $_SESSION['usertable']['usersession']='';
+ $_SESSION['usertable']['userip']='';
+
$p = myhash($a["userpassword"] . session_id());
$_SESSION['usertable']['userpassword'] = $p;
if ($a["userpassword"] != "" && $p != $pass) {
@@ -175,6 +178,8 @@ function DBLogInContest($name,$pass,$contest,$msg=true) {
}
}
}
+ $_SESSION['usertable']['usersession']=session_id();
+ $_SESSION['usertable']['userip']=$gip;
$c = DBConnect();
$t = time();
if($a["usertype"] == "team" && $a["usermultilogin"] != "t" && $a["userpermitip"] == "") {