Hi there,
I occasionally get an error saying the session is already started when Phalcon accesses the 'session' closure. I've modified it with the following and it seems to work OK. Is there anything wrong with what I've done? Thanks.
$di->set('session', function () {
$session = new Phalcon\Session\Adapter\Files();
if (!isset($_SESSION)) {
$session->start();
}
return $session;
});