📜  cookie 未在 php 代码示例中设置

📅  最后修改于: 2022-03-11 14:54:09.607000             🧑  作者: Mango

代码示例1
setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;