session_start();
$_SESSION[‘name‘] = ‘value‘;
$_SESSION[‘name‘];
unset($_SESSION[‘name‘]);
session_destroy();
setcookie(‘name‘,‘value‘);
$_COOKIE[‘name‘];
setcookie(‘name‘,null);
foreach($_COOKIE as $k=>$v){
setcookie($_COOKIE[$k],null);
}
原文地址:http://blog.51cto.com/12173069/2124720