setcookie - Cookies on localhost with explicit domain - Stack Overflow
By design, domain names must have at least two dots; otherwise the browser will consider them invalid. (See reference on http://curl.haxx.se/rfc/cookie_spec.html)
When working on localhost, the cookie domain must be omitted entirely. Just setting it to "" or NULL or FALSE instead of "localhost" is not enough.
Read full article from setcookie - Cookies on localhost with explicit domain - Stack Overflow
No comments:
Post a Comment