Skip to content

WordPress Cookie Domain

Set WordPress cookie domain in wp-config.php.

define('COOKIE_DOMAIN', '');


  1. Haywhy wrote:

    In what line do I add this in the wp-config.php file?

    Posted on 08-Jan-13 at 4:58 am | Permalink
  2. Jussi wrote:

    You can add it anywhere (as long as COOKIE_DOMAIN is not defined elsewhere), but I'd recommend putting it next to your database definitions.

    Posted on 08-Jan-13 at 12:07 pm | Permalink

One Trackback/Pingback

  1. Cookie-free JS, CSS, etc for Wordpress on 01-Mar-10 at 3:38 pm

    [...] Remember to set WP cookie domain in wp-config.php: define('COOKIE_DOMAIN', '');] Post a comment — [...]