* Setcookie with httpOnly param.

This commit is contained in:
guanxiying
2019-11-21 13:30:49 +08:00
parent cba8bc5b32
commit 230dcd7dd7
+3 -3
View File
@@ -819,9 +819,9 @@ class userModel extends model
*/
public function keepLogin($user)
{
setcookie('keepLogin', 'on', $this->config->cookieLife, $this->config->webRoot);
setcookie('za', $user->account, $this->config->cookieLife, $this->config->webRoot);
setcookie('zp', sha1($user->account . $user->password . $this->server->request_time), $this->config->cookieLife, $this->config->webRoot);
setcookie('keepLogin', 'on', $this->config->cookieLife, $this->config->webRoot, '', false, true);
setcookie('za', $user->account, $this->config->cookieLife, $this->config->webRoot, '', false, true);
setcookie('zp', sha1($user->account . $user->password . $this->server->request_time), $this->config->cookieLife, $this->config->webRoot, '', false, true);
}
/**