Skip to content

Sessions Configuration

NOTE: All Magento stores are required to use either Redis or Memcache (recommended) for session storage. We do not allow sessions to be stored in files nor in the database. See Magento Requirements for the full list of requirements.

The memcache service is enabled by default on Mojo Stratus.

Magento 1

Edit your session block in local.xml to enable Memcache sessions on your Magento 1 store.

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

Magento2

Edit your session block in env.phpto enable Memcache sessions on your Magento 2 store.

<? php
'session' =>
   array (
      'save' => 'memcache',
      'save_path' => 'tcp://memcache:11211'
),
?>