Hi, I can't get my session to start.
I'm having this piece of code in my services.php config file :
$di->set('session', function() {
$session = new Phalcon\Session\Adapter\Files();
$session->start();
return $session;
});
In my logging function I'm setting a session variable like that :
$this->session->set('auth', array(
'id' => $user->ID,
'name' => $user->Firstname . " " . $user->Lastname,
'roleID' => $role->ID,
'role' => $role->RoleName,
'module' => $userModule
));
And in my security class, I do this :
$auth = $this->session->get('auth');
When I login, I'm redirect to the main page, but when I click on a new link, it's like I'm not logged in. It returns me to the login page.
This happen since I upgrade to phalcon 1.3.1 form 1.2.4.
My login scheme is base on INVO example, it was working fine before I upgrade.
Thank you !