Set session time out limit for magento frontend

后端 未结 3 1458
暖寄归人
暖寄归人 2020-12-13 10:01

I am trying to set session time out limit to 30 minutes in magento but it is not expiring in 30 minutes. I went to System->Configuration->Web->Session Cookie managem

相关标签:
3条回答
  • 2020-12-13 10:08

    I found out what I was missing.

    I was setting the cookie life time for default configuration but it did not work.

    But this also needs to set the time out in website and store configuration scope.

    After setting the time for these scopes it worked.

    0 讨论(0)
  • 2020-12-13 10:12

    This can also be achieved from the admin panel without touching a single line of code.

    Go to System->Configuration->Advanced->Admin->Security and set the session lifetime to how many seconds you wish. I always set it to one day (86400 seconds) on my development environment.

    enter image description here

    System->Configuration->Web->Session Cookie management is for setting the timeout for normal users, signing into their profile & not the admin panel.

    0 讨论(0)
  • 2020-12-13 10:23

    I had this issue with the Magento admin session . The crux of the problem is that Magento's cookies obey PHP's session.gc_maxlifetime parameter. If you adjust that in your htaccess like the following, you should have better luck:

    php_value session.gc_maxlifetime 86400
    

    Hope that helps!

    Thanks, Joe

    0 讨论(0)
提交回复
热议问题