forked from halo-battle/game
Avoid trouble with captcha: set path for cookies
This commit is contained in:
parent
3ce13b0208
commit
66c93c6e59
@ -48,7 +48,7 @@ class Session {
|
|||||||
$this->level = $query['level'];
|
$this->level = $query['level'];
|
||||||
if(!empty($query['var'])) $this->values = unserialize($query['var']);
|
if(!empty($query['var'])) $this->values = unserialize($query['var']);
|
||||||
|
|
||||||
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'], '/');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -97,7 +97,7 @@ class Session {
|
|||||||
|
|
||||||
$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,time,ip,var,level,active) VALUES(0x$sess_cookie,$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'], '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
function put($uid = NULL)
|
function put($uid = NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user