我试图验证码:警告:setcookie()函数需要参数3长,
setcookie('email', $first_email, 'hash', $this->hash, 'logout', $this->log, time()+60*60*24*100);
,但我得到:Warning: setcookie() expects parameter 3 to be long,
我想setcookie
多变量。怎么做?也许是一个数组?
那么我将有这样的事情,那就是用值数据库
if(empty($_COOKIE['email']) || empty($_COOKIE['hash']) || empty($_COOKIE['logout'])) {
//something
}
else
//db