setcookie使用localhost不能成功的問題

問題:php setcookie("severss", "ss",$num, '/','localhost'); SetCookie("sever","dd",$num,"/","127.0.0.1") 兩個setcookie都成功! 可是用localhost的那個在localhost域名下就不能夠訪問 而127.0.0.1在127.0.0.1下能訪問 這是爲何阿? 要怎麼寫才能在localhos
相關文章
相關標籤/搜索