我想取消设置Cookie和会话,但不能。 我的代码
<?php
session_start();
unset($_SESSION["SRAUSERNAME"]);
unset($_SESSION["SRAPASSWORD"]);
unset($_COOKIE["RAUSERNAME"]);
unset($_COOKIE["RAPASSWORD"]);
setcookie("RAUSERNAME","",time() -60*60);
setcookie("RAPASSWORD","",time() -60*60);
header("location: ../");
?>
Sessions未被设置,但Cookie不是。为什么呢?