Using Memcached for sessions

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

  1. Log into the server or access your Magento files via FTP/SFTP.
  2. Open local.xml for the Magento install you want to set to Memcache sessions.
  3. 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>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top

We can help you. Right now.

Fast growing merchants depend ServerGuy for high-performance hosting. Experience counts. Let's get started.

Talk to a sales representative

USA / Worldwide

+1.714.2425683

India

+91.9852704704