Skip to content
ZenoCloud Call

Using Memcached for sessions

Although the files setting for sessions in Magento is great, you may want to use Memcache. Step by step guide Log into the server or access your Magento files.

First written in 2023. Things may have changed since.

Although the files setting for sessions in Magento is great, you may want to use Memcache.

Using your database or db for sessions is not recommended.

Step-by-step guide

  • Log into the server or access your Magento files via FTP/SFTP.- Open local.xml for the Magento install you want to set to Memcache sessions.- Change the existing "sessions" line to this (see below code block), adjusting the IP and port appropriately.
<session_save><![CDATA[memcache]]></session_save>

<session_save_path><![CDATA[tcp://127.0.0.1:11211?persistent=0&weight=2&timeout=60&retry_interval=10]]></session_save_path>
Next step

Apply the lesson to a real environment.

See managed hosting

Related services

Browse all field notes
Quote request

What should we quote?

Describe the configuration or problem, location and timing.