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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -