我有這樣的代碼來創建的cookiecookie的問題僅
這在Firefox和克羅默瀏覽器,但IE是一次又一次
if (!isset($_COOKIE["cook"])) {
$expire = time() + 60 * 60 * 24 * 30 * 2;
$data = array(
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => $_SERVER['HTTP_USER_AGENT'],
"create_time" => $now
);
$result = $db->insert("cookies", $data);
$cookie_id = $db->lastid;
$cookie_id = my_encrypt($cookie_id);
setcookie("cook", $cookie_id, $expire,"/","localhost");
} else {
$cookie_id = $_COOKIE["cook"];
}
每次我訪問網頁時創建新創建的cookie餅乾
只是想你的代碼,無法生育的問題!我使用IE9 – Tivie 2012-08-01 22:19:45
我有Internet Explorer 8 – 2012-08-01 22:20:46
任何人都可以幫助解決這個問題> \? – 2012-08-01 22:46:13