Write session in DB even if DEFAULT is not set for uid

This commit is contained in:
nemunaire 2020-11-15 17:25:51 +01:00
parent 66c93c6e59
commit 934c6a89fd

View File

@ -95,8 +95,8 @@ class Session {
$this->db->escape($sess_cookie);
$this->db->query("INSERT INTO $table(session,time,ip,var,level,active) VALUES(0x$sess_cookie,$time,0x$ip,$level,0,1) ");
$this->db->query("INSERT INTO $table(session,uid,time,ip,var,level,active) VALUES(0x$sess_cookie,0x00,$time,0x$ip,$level,0,1) ");
setcookie($session_config['cookie'],base64_encode(hexstr($this->cookie)),time() + $session_config['time'], '/');
}