We have a problem when we have sessions accidentally deleted from Magento 1.10 when we have memcache enabled (on the nginx web server).
It doesn't look like we set the cookie expiration time in Magento, for some reason a random time within an hour the session leaves.
If we disable memcache, it works fine.
Ultimately, we will need several servers connecting to the same cached session-based solution, so memcache seems to be the only option. In addition, we are now only caching sessions in memcache, and when I check the memcache statistics, we are nowhere near the threshold limit.
Here are the memcache settings in local.xml
:
<cache> <type>memcached</type> <path/> <servers> <localhost> <host><![CDATA[127.0.0.1]]></host> <port><![CDATA[11211]]></port> <persistent><![CDATA[1]]></persistent> </localhost> </servers> </cache> <session_save><![CDATA[memcache]]></session_save> <session_save_path><![CDATA[tcp://localhost:11211?persistent=0&weight;=2&timeout;=10&retry;_interval=10]]></session_save_path> <session_cache_limiter><![CDATA[private]]></session_cache_limiter>
The hard part of all this is that it is very difficult to reproduce, because the session is cleared after an hour. Sometimes it happens in a minute, sometimes 45 ...
We had several people who tried it in all different browsers on several virtual server systems (to resolve conflicts), and they all seem to clear up the same time.
Now the logic will dictate that there is a process that clears memcache, but I donβt know how to check it, and if I did, how to say that it was what cleared it. I looked through the Magento code, but I could not find anything like clearing this or deleting a session from memcache.
However, I found that the βfrontendβ cookie remains in the browser after the session ends, and when I check the memcache plates, the cookie disappears.
Not all keys / values ββhave disappeared from memcache, in this case only some of them. The mine and 2 or 3 people were completely absent for some reason.
Now, what I ask, not only has anyone come across this, but does anyone have additional ideas on what to try?
I am using the (famous) memcache.php file to monitor the memcache system on the server. Any other ideas / apps I can try?