session stored in cookies


Is there an already built session being persisted in cookies?

I'd like to use following API on backend:

$controller->session->set(array('user_id' => 1));


# => 1


save session backend in cookie?, its no recommended,

try with other adapter: example: Redis: in your services:

    $di->setShared('session', function() {
    $session = new Phalcon\Session\Adapter\Redis(array(
        'path' => "tcp://",
        'name' => SITE_DOMAIN . '-'


    return $session;

in your controller:

$this->session->set('SESSION_USER_ID', $o_user->getIduser());
if ($this->session->has('SESSION_USER_ID')){}