php - setcookie doesnt work -
after set cookie doesn't work. when leave domain part away , test on localhost, can echo cookie though:
setcookie("email",$email,0, "/", ".domainname.com");
if want test on localhost
, make domain localhost
.
you wouldn't expect setting google.com
allow set cookies google.com
you?
Comments
Post a Comment