Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Login as User not working with wildcard defaultCookieDomain #5799
The Login as User feature does not log you in on one of our production sites. It redirects you to the front-end but you appear logged out.
This site is multi-site and has to work on www.domain.com and another subdomain. When we changed the
The site is hosted on AWS EC2 with a load balancer and two Craft servers.
Our staging site is also on EC2, but with no load balancer. We do NOT set the
OK we've updated our staging site to have the same subdomain scheme as production and to use
Gah, my bad.
FWIW, we have
Is anything useful being logged in Craft's logs when it happens?
Not much useful in the logs. I think as far as Craft is concerned, there is no error, it does its job of looking up the user, creating a session and setting a cookie.
I do have logs of the request/responses headers in this flow. Maybe a clue in here?
Admin Login as User Request
Admin Login as User Response
After Login As User Response