php设置cookie setcookie("loginname", $_POST['loginname'], time()+3600 * 24 * 7,'/'); setcookie("password", $password, time()+3600 * 24 * 7,'/');
//清除cookie setcookie("loginname",'',time()-1,'/'); setcookie("password", '',time()-1,'/');
本文共 316 字,大约阅读时间需要 1 分钟。
php设置cookie setcookie("loginname", $_POST['loginname'], time()+3600 * 24 * 7,'/'); setcookie("password", $password, time()+3600 * 24 * 7,'/');
//清除cookie setcookie("loginname",'',time()-1,'/'); setcookie("password", '',time()-1,'/');
转载于:https://www.cnblogs.com/yuwensong/p/3668066.html