forked from halo-battle/game
Write session in DB even if DEFAULT is not set for uid
This commit is contained in:
parent
66c93c6e59
commit
934c6a89fd
@ -95,8 +95,8 @@ class Session {
|
|||||||
|
|
||||||
$this->db->escape($sess_cookie);
|
$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'], '/');
|
setcookie($session_config['cookie'],base64_encode(hexstr($this->cookie)),time() + $session_config['time'], '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user