cancel
Showing results for 
Search instead for 
Did you mean: 

Logout random Magento 2 Backend

Logout random Magento 2 Backend

Hi Magento-Community!

 

We are experiencing random logouts on some webs - mostly on a specific installation, that uses Shibboleth (SAML). The phenomenon does not seem to be limited to this web - it happens a lot on Magento 2 installations. We already reved up the Session-Timouts, php-Timouts and everything we found. My client complains about logouts every 10 minutes or so - we could not find out why this happens, we noticed it randomly.

 

Any suggestions?

7 REPLIES 7

Re: Logout automatico Magento 2 Backend

You can just set session time to 31536000 in your Admin panel,

Login with backend,

Stores -> Configuration -> Advacned -> Admin

Security Tab and set value 31536000 to Admin Session Lifetime (seconds) field.

Also,

If you want to share your Admin panel with multiple users you need to set Yes for Admin Account Sharing field.

Save changes and check.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Logout automatico Magento 2 Backend

From your Magento 2 - Backend admin panel increase the Admin Session Lifetime.

 

Goto stores -> configurations -> Advanced -> Admin -> Security -> Admin Session Lifetime (seconds) -> increased it up to - >31536000

 

Also could you please confirm you are using single credentials and password to logged in on all the devices ?

 

If yes then you also need to update setting on the same location called  Admin Account Sharing option to YES

 

 

if issue solved,Click Kudos & Accept as Solution

Re: Logout automatico Magento 2 Backend

Thanks for your fast reply and your suggestions.

 

We already did that:

Lifetime is on 31536000
Sharing Option is Yes

 

Logouts still occured.

Re: Logout automatico Magento 2 Backend

@fritzves - okay i understand ,

 

So do you have integrated any caching mechanism with server - like redis cache or memcached or anything ?

 

if yes , could you please share what exactly you have integrated ?

if issue solved,Click Kudos & Accept as Solution

Re: Logout automatico Magento 2 Backend

@Manthan Dave - no, it's just a standard LAMP server configuration and Magento installation. 

 

Probably it doesn't relate to that, but as frontend template we are using Fastest Template from Codazon:

http://magento1.codazon.com/fastest/intropage.html

But the backend is still the Magento one.

 

Furthermore, the logouts occuring during the normal backend operations (view, edit orders, customers etc.) and not only after some period of inactivity.

 

Re: Logout automatico Magento 2 Backend

@fritzves - okay i got your point.

 

so might be it is due to this theme.

 

you can do one thing as of now for testing purpose change this theme to Default Luma theme.

 

Then check it still logged out - if yes then we will trouble shoot more on this

if issue solved,Click Kudos & Accept as Solution

Re: Logout automatico Magento 2 Backend

Did you find a solution to this issue. We are also experiencing same issues with our magento. it would great if you could share the fix you found. Thank you