Magento Customer Login Issue - Login Page Keeps Reloading On Login - magento

So I found several variations of this issue and tried the solutions; none worked.
So customers are not able to login with the correct username and password. The login screen (https://www.example.com/customer/account/login) just refreshes when the credentials are entered correctly -- should redirect to the My Account Dashboard.
The only thing that seems to temporarily work (few hours at a time before the problem comes back) is when we change back and forth the System > Config > Web > Session Cookie Management > Cookie Domain to "https://www.example.com" and ".example.com" Then we flush the Magento Cache and we flush the Storage Cache and refresh the all Cache Types.
After this, Customers can login on Firefox, Safari and IE, but not Chrome (same login page looping issue).
We have exhausted everything we can think of. No errors in the logs and we have the correct getBlockHtml('formkey'); ?> code in the login.phtml files. We are using a custom theme and noticed this problem after migrating the site from Enterprise Edition to Community edition.
Any suggestions would be greatly appreciated!

Thanks for reading this article and opportunity to post my answer here.
I also faced same problem which AShah faced. I also googleing but did not find such proper result. Finally I removed or clean the session folder (root>var>session) and its works fine for my store.
Hope this trick will solve you. thanks

First check what are the values set for following path in core_config_data
table
web/cookie/cookie_path
web/cookie/cookie_domain
Try by replacing any existing value by NULL.
Following should be set to 1
web/cookie/cookie_httponly

Related

error 404 after login in frontend for SOME users

I'm facing a really strange issue with Magento.
Basically some users can login and interact with the site normally, and others login but end up with a 404 error on every page...
I've tried tweaking the cookies settings via Magento backend and also thru database. Exported and imported again the users, changed the session location from db to file... disabled cache, cleared cache, deleted everything from /var/ but nothing seem to help. And no errors are thrown anywhere.
I've also checked the session files for these users and they seem be fine.
I've noticed in the session files, that there's a brief history of the user... I was thinking if there are some tables where this data is coming from and that I can clear and see if it works.
I'm lost, really. And out of ideas!

Wamp MyBB Forum Login failure

I have mybb forum on my website.
I am trying to make changes to my website.
I downloaded the contents of my website to localhost/wamp/www
Website works fine. When I try to login into mybb forum, it get redirected to login page again despite of the correct login.
Can someone tell me whats going wrong?
After debugging, I believe this could be a problem with localhost sessions.
Any help would be appreciated very much!
I understood that the session variables are not getting stored, however, the session files are being created.
What is the solution for wamp localhost sessions issue?
The problem is with the cookie domain.
Login as forum admin. Goto Configuration --> settings --> general settings
Clear the field: Cookie Domain
In case your admin login fails or you are not able to select configuration after your login don't worry!
Open the file: /forum/inc/settings.php
Search for $settings['cookiedomain'] and set the field to empty string.
Now you can login into MyBB in your localhost!!

Pages redirect to homepage when user logs out from them

I'm new to Joomla, and I am having this strange issue that I can't find any help on, and I have no idea how to go about even debugging it.
Basically, whenever a user logs out on a page, that page from there on out redirects to the homepage. If I clear my cookies, everything goes back to normal, and the page is accessible again.
This doesn't happen in Chrome, just Firefox and IE. I'm using Joomla 2.5.
I've looked at the debug console but I didn't find any stand out clues.
Thanks everyone.
Go to the Module Manager, open the Login module, and in the parameters section, there are 2 fields to choose the redirection after logging in and out.
I had the same problem with joomla 2.5 on Firefox, but not on Chrome. Problem would reset when I cleared the cache, until I did a logout again. Then the home page content would get written into my cache for the page I had been on for registered users only, when I logged out.
I fixed it when I set the Login module to explicitly take the user to the home page, rather than leaving the setting at default. Then it worked correctly for both browsers, and the home page content no longer got cached as the registered users only page.
Set the logout behavior in Extensions: Module Manager: Module Login: Basic Options
Hope it fixes your problem also!
I realize this question is over a year old, but I just worked through the same issue. Hopefully my answer can still be useful to someone. The solution was to disable a plugin called "System - Logout" and clear the browser's cache afterwords. This fixed both the issue of not being able to get back to the page after logout, and an issue where the "Logout Redirection Page" parameter set in the login module was being ignored.

Cannot log in or add items to cart in Magento after migrating to new server

I have migrated a Magento site to another server (the same server the database was already hosted on) and I am no longer able to log in or add items to my cart. I have found a few others who have posted about this type of problem but nothing seems to work for me. I have disabled all caching, etc. Ensured that sessions work. Increased the session lifetime. No errors are being logged anywhere. If I enter wrong credentials I get an error. But if I enter the correct information it just keeps returning me to the login page. I have opened permissions completely. Nothing makes any difference! So aggravated. Please help!
Found the issue. Well sort of. I think there was a problem with the timezone (the server I moved to was an hour different from the other) but essentially I resolved the problem by increasing the values for two config items in core_config_data:
UPDATE core_config_data SET value=86400 WHERE path='web/cookie/cookie_lifetime';
UPDATE core_config_data SET value=86400 WHERE path='admin/security/session_cookie_lifetime';
The first query fixed the shopping cart problem, the second the admin login problem.
Again I think there is a mitigating factor here as well, but this at least got me over the hump.

Magento session lost when switching to https from http

I've searched high and low for a solution to this, with no luck. My host told me they are too busy to help.
Magento 1.4.2 // SSL cert
1- When I add an item to cart, the page reloads and my item is added to cart. [good]
2- Next, I click home, and my items are no longer visible in cart sidebar. [bad]
3- Next, I click "Tops", and my items are still not visible in cart sidebar. [bad]
4- Next , I click "Bottoms" and the items show just fine.
In all cases where the cart isn't visible, I can add https to the URL and the cart loads up just fine. Can anyone help me figure out why my session is being lost between http and https?
I have all my backend web cookie settings set to "no" except for sID.
Also- When a user is logged in, the cart items ALWAYS show on the right. It's only screwy if they're a guest.
Thanks guys, if you need me to post any code let me know.
wwwdotlylifdotcom
EDIT: Here is a screenshot of my cookies session in firebug (not exactly sure what I am looking at). Hope this helps.
And here is my Session settings in magento: I have tried just about every variation of turning these on and off.
EDIT!
This issue has actually been narrowed down to a cache issue. We found out that when the cache is dumped/deleted, the website works properly. But after a few minutes of surfing the problem happens again. Does anyone have any idea? (And should i change the question title?)
I'm using a module called Lightspeed from TinyBrick, and it seems the new cache options are messing with our site. =( I'm contacting them shortly.
**EDIT Tinybricks excellent support helped us out. Thanks for all of your suggestions.
Is the session cookie being set to be HTTPS-only? That'll prevent it from being carried over to regular HTTP requests, effectively giving the user two different sessions.
You have in your screenshot two frontend cookie with two domains, one with www and an other one without. Check if you have a correct domain name in the configuration > Web tab > Cookie Management > Cookie Domain (or something close to that). If it's empty set it to ".mydomain.com" and try again.
Check if you don't have different cookie domain in your configuration in the other store views, set them to "use website".
If still doesn't work, What are the values of the fields of cookie management and the cookie validation settings
We were experiencing similar issues where our custom nav (depending on whether a user was logged in or not, was not very consistent across different pages.
We followed the suggestion # http://ka.lpe.sh/2011/06/19/magento-checking-customer-admin-is-logged-in-or-not/ to check if a user was logged base on the frontend session variable before a rendering a particular block, and it seems to have done the trick.
Perhaps you can try something similar.
Tinybricks excellent support helped us out. Thanks for all of your suggestions. This was a localized problem based off cache and a module called Lightspeed.

Resources