Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous 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 [2017/05/05 21:07] Lisa Clarke |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
====== 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==== |
+ | The 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** was set to be a small number so PHP cleared the session data before Magento had the chance to access it. | ||
- | 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's 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. | + | |
+ | To check **Cookie Lifetime** in Magento: | ||
+ | -Log 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). |