public function init()
{
parent::init();
// Register as auth handler, if it's not set yet
if (!isset($this->app->auth)) {
$this->app->auth = $this;
}
if (!$this->app->hasMethod('initializeSession') && !session_id()) {
// No session support
return;
}
// Try to get information from the session. If user is authenticated, information will
// be available there
$this->info = (array) $this->recall('info', false);
}