Ok so i have my session declared like so:
    $di->setShared('session', function () {
        $session = new SessionAdapter();
        $session->start();
        session_write_close()
        return $session;
    });The reason why i have session write close is to prevent session blocking. Then i tried inside setting a session variable inside a controller
$this->session->start();
$this->session->set('auth', 1);
session_write_close();
echo $this->session->get('auth'); // 1it properly sets the auth variables but when i try to login, the auth variable inside the security plugin is NULL
if(!$this->session->has('auth')){
    $dispatcher->forward(array(
        'controller'=>'errors',
        'action'=>'show404',
        'params'=>$this->session->get('auth');
    ));
}in my view, `show404.volt'
<?php var_dump($this->dispatcher->getParams()); //NULL ?>and what's really weird is that, the session in the plugin is not started, and even when i start the session it is still the same, the auth variable is null.