Make WordPress Core

Opened 10 years ago

Last modified 2 months ago

#39495 new defect (bug)

Can't navigate to subsite without logging in again.

Reported by: davidmlentz Owned by:
Priority: normal Milestone:
Component: Networks and Sites Version: 4.7
Severity: normal Keywords: reporter-feedback close
Cc: Focuses: multisite

Description

In a multi-site configuration, as a Super Admin user, log in to the root site. Then navigate to the dashboard of a subsite.

Expected result: navigate to the subsite unhindered.
Actual result: prompted to log in before navigating to the subsite.

Problem occurs when we use WP Core 4.7. Problem does not occur on WP Core 4.6.

Problem occurs when all plugins are deactivated and uninstalled.

Problem occurs on more than one theme.

Change History (7)

#1 @SergeyBiryukov
10 years ago

  • Component General → Networks and Sites
  • Focuses multisite added

#2 follow-up: @kevinlangleyjr
10 years ago

@davidmlentz - Is this for a subdomain or subdirectory multisite install? I've tested on both a fresh subdirectory and subdomain install and don't see any issues.

#3 in reply to: ↑ 2 @davidmlentz
10 years ago

Replying to kevinlangleyjr:

@davidmlentz - Is this for a subdomain or subdirectory multisite install? I've tested on both a fresh subdirectory and subdomain install and don't see any issues.

Subdirectories. My test case has me first log in here:
​https://dev-oit.boisestate.edu/wp-admin/

Then move to here:
​https://dev-oit.boisestate.edu/email/wp-admin/

...at which point I'm prompted to log in again.

#4 @anonymized_14169293
9 years ago

This is also happening in multisite with the "new" native domain mapping functionality. Even when you are a Super Admin, you need to logging-in in each site and subsite individually.

This ticket was mentioned in ​Slack in #core-multisite by realloc. ​View the logs.


16 months ago

#6 @realloc
2 months ago

  • Keywords reporter-feedback close added

ms_cookie_constants() is effectively unchanged between 4.6 and 4.7, so for a subdirectory install, ADMIN_COOKIE_PATH and COOKIEPATH both resolve to /, and the cookies also apply to /email/wp-admin/. No re-login should be required. This matches comment:2, where the issue could not be reproduced on fresh installs.

This does not look like a core regression, but rather an environment-specific issue (HTTPS behind a reverse proxy, or manually defined cookie constants in wp-config.php).

@davidmlentz, could you confirm whether the site runs behind a proxy with SSL termination, and whether it reproduces on a clean 4.7 subdirectory install? Without a reproducible case, I suggest closing this ticket.

#7 @realloc
2 months ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.