Unable to login in magento admin panel in any browser
-
03-10-2020 - |
Question
I am unable to login in magento admin panel. Magento ver. 1.9.2.4. Reason is in every minute its calling this:
Error : {ajaxExpired: 1,…} ajaxExpired : 1 ajaxRedirect : "https://www.gleitsichtbrille.de/index.php/ag_supervista/index/login/key/dc32322811d123b75356a152194991d0/"
I have followed below steps to solve this error:
- Clear browser cache, history,etc
- Delete cache folder from var.
checked with below code to comment it in
app\code\core\Mage\Core\Model\Session\Abstract\Varien.php
and remove cache:// session cookie params /*$cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), 'domain' => $cookie->getConfigDomain(), 'secure' => $cookie->isSecure(), 'httponly' => $cookie->getHttponly() );*/
Set Permission 777 to cache and session folder.
Set web configuration "Use HTTP Only" to "No".
Solution
My issue is solved now!!!
I have deleted Application Load Balancer from AWS EC2 and followed below steps to create Classic Load Balancer with cookies 3600 as same was in my magento site.
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
On the navigation pane, under LOAD BALANCING, choose Target Groups.
Select the target group.
On the Description tab, choose Edit attributes.
On the Edit attributes page, do the following:
Select Enable load balancer generated cookie stickiness.
For Stickiness duration, specify a value between 1 second and 7 days.
Choose Save.