Make WordPress Core

Opened 10 years ago

Closed 16 months ago

Last modified 16 months ago

#38711 closed defect (bug) (wontfix)

Invalid Cookie domain for wp-settings-time-*

Reported by: sebastian.pisula Owned by:
Priority: normal Milestone:
Component: Users Version:
Severity: normal Keywords: has-patch needs-testing reporter-feedback
Cc: Focuses: administration

Description

I have set cookie domain

<?php
define( 'COOKIE_DOMAIN', '.example.com' );

but wp-settings-time-* have invalid cookie domain.

Attachments (1)

38711.patch​ (1012 bytes ) - added by sebastian.pisula 10 years ago.

Download all attachments as: .zip

Change History (7)

#1 @johnbillion
10 years ago

  • Component General → Users
  • Focuses administration added
  • Keywords has-patch needs-testing reporter-feedback added

Thanks for the patch.

What does the cookie domain get set to without this patch?

#2 @sebastian.pisula
10 years ago

I have defined in wp-config.php

<?php
define( 'COOKIE_DOMAIN', '.example.com' );

my address: http://crm.example.com

Cookie domain should be .example.com but is crm.example.com

This patch fix this.

This ticket was mentioned in ​PR #9267 on ​WordPress/wordpress-develop by ​@sainathpoojary.


16 months ago
#3

Trac ticket: #38711

#4 @sainathpoojary
16 months ago

Tested and confirmed the issue still exists. The original patch didn’t apply cleanly, refreshed it and raised a PR for review.

#5 @siliconforks
16 months ago

It appears that the current behavior is actually intentional: see [29478].

#6 @johnbillion
16 months ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed

Good spot. Closing as per [29478] / #29095.

Last edited 16 months ago by sabernhardt (previous) (diff)
Note: See TracTickets for help on using tickets.