extends abstract class Phalcon\Session\Adapter
implements Phalcon\Session\AdapterInterface
Source on GitHub
This adapter store sessions in Redis
use Phalcon\Session\Adapter\Redis;
$session = new Redis([
'uniqueId' => 'my-private-app',
'host' => 'localhost',
'port' => 6379,
'auth' => 'foobared',
'persistent' => false,
'lifetime' => 3600,
'prefix' => 'my_'
'index' => 1,
]);
$session->start();