Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 7 Chome/IE10 Error - Admin Login Redirect Loop Due To Cookie Lifetime In Admin #168

Closed
lukebranch opened this issue Dec 14, 2012 · 3 comments

Comments

@lukebranch
Copy link

Hi, I've run into a bug recently when using a clients new Windows 7 Pro machine to try and access the Magento backoffice that causes a redirect loop on the Magento admin login page. You can see the workaround fix here: http://www.yireo.com/blog/1296-windows-7-google-chrome-magento-admin-cookie-problem

I have managed to workaround the bug in the meantime by setting my cookie lifetime to 86400 which allowed me to login to the backend rather than being caught in a redirect loop at the login page. This also seems to apply to frontend logins as well. If this has already been brought up I apologize, however I think it needs to be looked into.

@magento-team
Copy link
Contributor

Looped admin login page is not Magento 2 bug, but very secure behaviour of IE and Chrome with cookies(tagged HttpOnly) from localhost. Both these browsers ignore HttpOnly cookies from localhost.
Issue for chromium: https://code.google.com/p/chromium/issues/detail?id=56211

Possible solutions are:
1.(very quick) Disable generating of HttpOnly cookies on Magento backend.
From Firefox go to backend->Stores->Configuration->Web->Default Cookie Settings->Use HTTP Only option set to "No"
2. (conceptually correct) Configure apache name based virtual host for Magento and reinstall it. Then you'll have access to Magento through URL like http://magento.local and cookies won't be dropped by browser.

@amenk
Copy link
Contributor

amenk commented Jul 11, 2013

Is there also a solution without reinstalling Magento?

@brianmcdo
Copy link

Simply update your host file on your operating system and point 127.0.0.1 to something like localhost.dev

How to:
http://www.readyartwork.com/2012/02/09/edit-hosts-file-windows-mac-gnulinux/

vpelipenko added a commit that referenced this issue Mar 23, 2015
joanhe pushed a commit that referenced this issue Nov 17, 2015
[Firedrakes] MAGETWO-45300: Update Date grids to support "From To" filter with the same date
okorshenko pushed a commit to isitnikov/magento2 that referenced this issue Aug 10, 2016
[SUPPORT] Portdown MAGETWO-51015 down to M2.0.x branch
magento-engcom-team pushed a commit that referenced this issue Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants