diff --git a/src/Api/Memcache/MemcacheOptIn.php b/src/Api/Memcache/MemcacheOptIn.php index d08ded55..5cb933d9 100644 --- a/src/Api/Memcache/MemcacheOptIn.php +++ b/src/Api/Memcache/MemcacheOptIn.php @@ -52,6 +52,9 @@ class_alias($class, $alias); define('MEMCACHE_HAVE_SESSION', 1); // See ext/session/MemcacheSessionHandler. } +ini_set('session.save_path', 'Google\AppEngine\Api\Memcache\Memcache'); +session_set_save_handler(new Google\AppEngine\Ext\Session\MemcacheSessionHandler(), true); + /** * Adds a new item to the cache. Will fail if the key is already present in the * cache.