开发者

setcookie doesnt work

开发者 https://www.devze.com 2023-03-02 02:14 出处:网络
After I set this cookie it doesn\'t work. When开发者_JAVA百科 I leave the domain part away and test it on the localhost, I can echo the cookie though:

After I set this cookie it doesn't work. When开发者_JAVA百科 I leave the domain part away and test it on the localhost, I can echo the cookie though:

setcookie("email",$email,0, "/", ".domainname.com");


If you want to test on localhost, than make the domain localhost.

You wouldn't expect setting it to google.com to allow you to set cookies for google.com would you?

0

精彩评论

暂无评论...
验证码 换一张
取 消