I have scoured the internet but cannot find an answer, and the answers I find are to having Magento locally installed (MAMP/WAMP) etc.
I have installed Magento www.domain.com (1.7.0.2) and also in my developer site www.dev.domain.com. (1.9.0.1)
when I try to login into my admin sites, sometimes I get kicked out automatically. I try to sign in but it loops me back to the login screen. I do not get the red error message 'username/password is wrong'.
I get kicked out from both sites (my www.domain.com and my subdomain www.dev.domain.com)
after clearing my cookies held in my browser (any browser) it allows me to log back in? I can see that the adminhtml cookie is giving me 1 hour expiration. sometimes I get kicked out straight away after logging in?
I can't check Magentocommerce as the website is under maintenance. My domain is hosted on a VPS, installed as Local Server.
please can anyone help?
thanks
Best Answer
Check your domain cookie path. If it's a subdomain of the main site (as it looks from your host set up) then you'll get kicked out of one when you log into the other.
http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/system_config/edit/web#session_cookie_management_field_descriptions lists:
Simply blank this out to ensure you can log into all of them. Obviously, if you DO want domain cookies to be available to subdomains, you'll need to use a different development domain.