public function init()
    {
        parent::init();
        $self = $this;
        //Close session on end of request
        $this->app->once(Reaction\RequestApplicationInterface::EVENT_REQUEST_END, function() use (&$self) {
            return $self->close();
        });

        if ($this->getIsActive()) {
            Reaction::warning('Session is already started');
            $this->updateFlashCounters();
        }
    }