Make WordPress Core

Opened 8 years ago

Last modified 10 months ago

#37857 new defect (bug)

Strange behaviour for COOKIE_DOMAIN since Wordpress 4.6

Reported by: indikatordesign's profile indikatordesign Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Login and Registration Keywords: reporter-feedback
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', '' );
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 (2)

#1 @swissspidy
8 years ago

  • Component changed from Customize to Login and Registration
  • Focuses accessibility removed

#2 @rajinsharwar
10 months ago

  • Keywords reporter-feedback added

Hi @indikatordesign, thank you for your ticket. I could see this was reported long ago, can you please check now if the problem still persists?

Note: See TracTickets for help on using tickets.