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 management and set 1800 value for the field Cookie Life time
but still it is not expiring the session in specified time out limit. I don't know what is wrong with Magento frontend session.
Am I setting the limit at right place? Is there any other setting in magento backend to set the frontend session time out limit.
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.
System->Configuration->Web->Session Cookie management is for setting the timeout for normal users, signing into their profile & not the admin panel.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With