Make WordPress Core

Opened 19 months ago

Last modified 19 months ago

#37857 new defect (bug)

Strange behaviour for COOKIE_DOMAIN since Wordpress 4.6

Reported by: indikatordesign Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Login and Registration Keywords:
Focuses: Cc:


I hope I am right here, because since the last update for WordPress 4.6 there is a very strange behaviour with the by hand sedate constant COOKIE_DOMAIN.

I have adapted COOKIE_DOMAIN in wp-config.php to be able to use the same login data about multible domains away.

Since the update for WordPress 4.6 this causes problems with the browser cache for all dynamic data transfers, like forms etc. Not only in WordPress, but also in form-plugins or WooCommerce.

With the example WooCommerce: data for the goods basket are updated always only after a renewed page-reload. That means, if you go to basket, no changes are active. You need to reload the basket to see the changes in action. The same behavior with changes in forms for addresses etc.

Absolutely no caching module is active. If browser caching is disabled, everything works fine.

These are the changes I've made for the COOKIE_DOMAIN in wp-config.php:

define( 'COOKIE_DOMAIN', '.domain.com' );
define( 'COOKIEPATH', '/' );
define( 'SITECOOKIEPATH', '/' );
define( 'ADMIN_COOKIE_PATH', '/wp-admin' );
define( 'COOKIEHASH', md5( 'https://' . COOKIE_DOMAIN ) );

If I escape them, everything works fine.

Before the update everything functioned very well and without any problems.

Change History (1)

#1 @swissspidy
19 months ago

  • Component changed from Customize to Login and Registration
  • Focuses accessibility removed
Note: See TracTickets for help on using tickets.