cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.4 Logs Admin Out Once On Customer Admin Page

Magento 2.4.4 Logs Admin Out Once On Customer Admin Page

Hello All,

 

I have a scenario that I'm hoping someone has come across. In the Magento admin, when I enter a customer edit page, I am quietly logged out during the various Ajax processes.

 

An example of the Ajax call that triggers this is:

 

 

Screenshot 2024-11-21 at 20-57-40 New Message - Magento Forums.png

 

 

 

It's supposed to return a JSON value along the lines of:

 

 

response1.png

 

 

Instead it returns this:

 

 

response2.png

 

 

Of course, any subsequent clicks on the site sends me back to the login page.

 

I don't see anything obvious in the logs that would explain this. Has anyone encountered anything like this?

 

Thanks.

1 REPLY 1

Re: Magento 2.4.4 Logs Admin Out Once On Customer Admin Page

Hello @jhaskinshc4966 

 

Check Magento Session Configuration:

         Verify Session Storage: Open app/etc/env.php.

         Check the session configuration under the session key:

 

Clear Sessions:

        If the session storage is files, delete old session files:

        rm -rf var/session/* 

 

 Cookie Domain and Path:

       Update Cookie Settings:

       Go to Stores > Configuration > General > Web.

       Expand the Default Cookie Settings section.



 CSRF Token Validation:

      Increase Admin Session Lifetime:

      Go to Stores > Configuration > Advanced > Admin > Security.

      Set Admin Session Lifetime (seconds) to a higher value, e.g., 86400 (24 hours).

 

 

 

 

​Hope it helps ! 

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

 

 

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9