Avoid trouble with captcha: set path for cookies

This commit is contained in:
nemunaire 2020-11-15 17:24:53 +01:00
parent 3ce13b0208
commit 66c93c6e59

View File

@ -48,7 +48,7 @@ class Session {
$this->level = $query['level'];
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
{
@ -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) ");
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)