开发者

setcookie doesnt work

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜