Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
litespeed_wiki:cache:litemage:troubleshooting:front-end-timeout-too-soon [2016/05/09 17:33] Long Hu |
litespeed_wiki:cache:litemage:troubleshooting:front-end-timeout-too-soon [2016/05/09 17:40] Long Hu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Magento front-end session timing out too soon ====== | ====== Magento front-end session timing out too soon ====== | ||
- | **Problem**:Magento site is timing out faster for users than your current "Cookie Lifetime" setting (default is 3600 seconds), PHP’s session.gc_maxlifetime parameter may be the problem. | + | **Problem**: Magento site is timing out soon while "Cookie Lifetime" in Magento configuration set to default 3600 seconds |
- | Firstly, check your "Cookie Lifetime" setting to ensure it is set correctly by logging in to the Magento Admin Panel and navigating to System -> Configuration and clicking "Web" under "GENERAL" in the left side menu. Look under "Session Cookie Management" for "Cookie Lifetime" and make sure that it is set as intended (in seconds). | + | **Cause**: PHP’s session.gc_maxlifetime set to be a small number so PHP cleared the session data before Magento has the chance |
- | Assuming that this was not the issue, open your sites php.ini file and look for "session.gc_maxlifetime". If this is set to a smaller total number of seconds than your Magento "Cookie Lifetime" setting, PHP will clear the session data before Magento has the chance. | + | **Solution**: Set "session.gc_maxlifetime" in the site php.ini to a number larger than the Cookie Lifetime. |
- | + | ||
- | To fix this simply set "session.gc_maxlifetime" to a number greater than or equal to "Cookie Lifetime" and save your php.ini file. | + | |
+ | **Extend**: How to check "Cookie Lifetime" in Magento: logging in to Magento Admin Panel, navigate to System -> Configuration -> Web -> GENERAL . Look under "Session Cookie Management" for "Cookie Lifetime". Make sure it is set as intended (in seconds). |