Magento deadlines expire too early
I am unable to setup Magento sessions correctly. I want the admin session and client cookies to last at least 24 hours. They now expire in about 10 minutes. Also, for customers, the carts will be empty by then.
I set the value for the cookie at configuration/web/
and for the admin at configuration/advanced/admin
to 86400. I also put this in .htaccess
:
php_value session.gc_maxlifetime 86400
php_value session.cookie_lifetime 86400
However, all sessions will expire in about 10 minutes.
Which setting did I forget?
source to share
There is a menu item here:
System> Configuration> Advanced> Administrator> Security> Session Duration (Seconds)
Also check your php environment variables
- php_value session.cookie_lifetime
<seconds>
- php_value session.gc_maxlifetime
<seconds>
To make sure you are editing the correct php.ini, create a simple "check.php" file with the following content:
<?php
phpinfo();
?>
put the file in your magento home directory, call it from your browser (url / check.php) and check these options.
For more information see here .
Also set the "Session lifetime (in seconds)" under System > Configuration > Admin
to a high value like 7200 so you don't have to re-enter data
source to share