The MU forums have moved to WordPress.org

Cookies availabe to all sub-domains (2 posts)

  1. mr_prateekjain
    Member
    Posted 15 years ago #

    Is there any way by which wordpress cookies will be availabe to all the sub-domains.
    eg. Cookies set up in fet.localhost should be available to demo.localhost.
    I tried including "define('COOKIE_DOMAIN', '.localhost');" in the wp-config.php file.
    But after the login does not works. It redirects back to login page. I guess it is not able to set cookies.
    Any suggestions how i can resolve this problem??

  2. cafespain
    Member
    Posted 15 years ago #

    It works like that already. It's a different issue you are having, try clearing your cookies and watch them to see what happens.

    But from the define, I assume you are locally installed, did you set up the test domains in the hosts file?

About this Topic

  • Started 15 years ago by mr_prateekjain
  • Latest reply from cafespain