cphalcon
cphalcon copied to clipboard
$session->start() warning
This code from INVO example throws a default session_start() warning if PHPSESSID cookie is incorrect (contain illegal characters):
$session = new Phalcon\Session\Adapter\Files();
$session->start();
I think, it isn't good, because this warning is uncatchable.
`You can replace $session->start(); by @session_start();
Yes, I can, but this is a bad way.
Is the Phalcon\Session\Adapter\Files() class just layer over default session_* functions?
Yes, it provides OO wrappers to some session_* functions also provides isolation for session data in applications that run in the same host/session