How to use Session Files in Phalcon 4.0?

Hi all. I'm trying the new version of Phalcon and I do not know how to make the sessions work.

This code produces: Call to undefined method Phalcon\Session\Manager::setAdapter(). If I change setAdapter by setHandler it produces a 500 error.

$adapter = new Phalcon\Session\Adapter\Files();
$session = new Phalcon\Session\Manager();
$session->setAdapter($adapter);
$session->start();
/**/
$session->set('uid', 1);
/**/
if ($session->has('uid')) {
    echo $session->get('uid');
}


305

I have this problem too, i already checked exits() too and received "Call to undefined method". I think 4.0 alpha 1 built before some method add to current branch. We must wait some update versions in future!!

Note that only the first alpha has been released for 4.0. There's probably a lot of stuff broken - I wouldn't recommend using it for production, or even development yet - unless you're checking the functionality of a particular piece.