Title: Cookiless domain problem
Last modified: August 31, 2016

---

# Cookiless domain problem

 *  Resolved [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * (@reptiguy1)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cookiless-domain-problem/)
 * I had cookiless domain configured correctly, at least I thought I did. When I
   ran the website through the pingdom tool it got 100% or there abouts for serving
   static content from a cookiles domain.
 * This was a few weeks ago. Today, I just realised that the cookieless domain define
   rules in the wp-config.php where commented out, I must have done this to debug
   something or other and forgot to remove them. After I removed them and uploaded
   the file, none of the the static content files from my theme folder were loading.
 * It took me a while to realise but turned out I had to change the url paths as
   they were missing “wp-content” in the path. I’ve no idea how they were able to
   load previously without it.
 * Anyway the problem I have now is that the after submitting login details correctly(
   they bounce back if entered incorrectly so appear to be authenticated when try
   to log on), the session doesn’t seem to start up. The page self submits on the
   login page and I can’t access the admin.
 * Before I tried to enable again the cookieless domain I set up php-fpm on the 
   VPS. I don’t know if this is causing a conflict or not but I doubt it as the 
   website runs normally if I comment out the cookie constants in wp-config.php.
 * These are the variables I’m using:
 * define(“WP_CONTENT_URL”, “[http://static.domain.com&#8221](http://static.domain.com&#8221););
   
   define(“COOKIE_DOMAIN”, “www.domain.com”); define(“WP_PLUGIN_URL”, “[http://www.domain.com/wp-content/plugins&#8221](http://www.domain.com/wp-content/plugins&#8221););
 * Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * (@reptiguy1)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cookiless-domain-problem/#post-7037375)
 * I’ve sorted the static content now without making adjustments to the code. This
   article explains it a bit better:
 * [https://surpriseazwebservices.com/serve-images-from-sub-domain-in-wordpress/](https://surpriseazwebservices.com/serve-images-from-sub-domain-in-wordpress/)
 * But I’m still having the issue with not being able to log on.
 * Some help please?
 *  Thread Starter [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * (@reptiguy1)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cookiless-domain-problem/#post-7037456)
 * Fixed it by setting COOKIE_DOMAIN in wp_config.php and the Site Address (URL)
   text box in general settings to:
 * [http://domainname.com](http://domainname.com) (without the www prefix)
 * It doesn’t look as good in the address bar without it but it’ll do for now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cookiless domain problem’ is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [reptiguy1](https://wordpress.org/support/users/reptiguy1/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/cookiless-domain-problem/#post-7037456)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
