Hi! I use this code generated by Phalcon Developer Tools
use Phalcon\Session\Adapter\Memcache as SessionAdapter;
$di->set('session', function () {
$session = new SessionAdapter(array(
'host' => '127.0.0.1',
'port' => 11211,
'lifetime' => 8600,
'prefix' => 'memc.sess.',
'persistent' => false
));
$session->start();
return $session;
});
I have existing Memcache key and $_COOKIE['PHPSESSID'].
$session->start(); create session with sid = $_COOKIE['PHPSESSID'] but clears all existing data in Memcache key.
How can i fix it?