On a shared machine, I have two sites running:
staging.example.com. I have a problem where I can't log into the staging admin due to cookie issues.
If I clear all the cookies, I can log into the staging admin, and subsequently the main admin as well, but I get kicked out of staging. Inspecting cookies, they're both set to
.example.com. I've tried all possible combinations of cookie domains for the respective site, but none seems to work.
This solution has a similar problem that he solved by forcing his main site to go to
www.example.com and setting appropriate cookies (I'm guessing cookie domain values
.devsite.example.com in his case). Is there any other way to make both of these sites work properly in the same browser without the
www addition or hacking the code?