extends abstract class Phalcon\Session\Adapter
implements Phalcon\Session\AdapterInterface
Source on GitHub
This adapter store sessions in memcache
use Phalcon\Session\Adapter\Memcache;
$session = new Memcache([
'uniqueId' => 'my-private-app',
'host' => '127.0.0.1',
'port' => 11211,
'persistent' => true,
'lifetime' => 3600,
'prefix' => 'my_'
]);
$session->start();
$session->set('var', 'some-value');
echo $session