define COOKIE_DOMAIN troubles
-
I’m working on a theme where i would like to use some cookies.
I have one trouble tho, if I in wp-config.php adds this line linedefine('COOKIE_DOMAIN', 'localhost');and clear my browser (chrome in this case) for all cookies, I get the error that cookies are disabled. if i remove this line, i can login again.
I’m working in a local enviroment, and if I comment out this line and login, i can see that I get a session cookie from localhost. But if i define localhost (or http://localhost och localhost/ or whatever) as COOKIE_DOMAIN i can’t login.
So, what can i do to use the COOKIE_DOMAIN for setting my cookies?
The topic ‘define COOKIE_DOMAIN troubles’ is closed to new replies.