創建:
setcookie("ICNet[Reg]"
setcookie("ICNet[Active]"
print_r($_COOKIE);
/*Result:
Array ( [ICNet] => Array ( [Reg] => This is reg cookie [Active] => This is login cookie ) [PHPSESSID] => nsi
*/
讀取:
echo $_COOKIE[
echo $_COOKIE[
//或者
$arr_cookie = $_COOKIE[
echo $arr_cookie[
echo $arr_cookie[
銷毀:
setcookie(
setcookie(
From:http://tw.wingwit.com/Article/program/PHP/201311/21031.html