慕婉清6462132
根据php 文档中的setcookie, 您可以像这样使用它:$cookie_set = setcookie( 'login_perma',// name $token,// value time()+1000*24*60*60,// expires null,// path (optional) null,// domain (optional) true,// secure true,// httponly));或者$cookie_set = setcookie( 'login_perma',// name $token,// value null,// expires null,// path null,// domain null,// secure null,// httponly array(// options 'expires' => time()+1000*24*60*60, 'secure' => true, 'httponly' => true, 'samesite' => 'Lax' ));然后var_dump($cookie_set);