session,cookie相关总结
时间:2006-03-28 来源:freespray
session的注销
$user=$_SESSION['username'];
unset($user);
session_destroy();
session的注册
$_SESSION['username']=$user;
setcookie("名称",变量,时间);
注销
setcookie("名称","",时间);
$user=$_SESSION['username'];
unset($user);
session_destroy();
session的注册
$_SESSION['username']=$user;
setcookie("名称",变量,时间);
注销
setcookie("名称","",时间);
相关阅读 更多 +