public function haveInSession($key, $val)
    {
        $this->di->get('session')->set($key, $val);
        $this->debugSection('Session', json_encode($this->di['session']->toArray()));
    }
public function haveInSession($key, $val)
    {
        $this->di->get('session')->set($key, $val);
        $this->debugSection('Session', json_encode($this->di['session']->toArray()));
    }
public function haveInSession ( $ key , $ val ) { $ this -> di -> get ( 'session' ) -> set ( $ key , $ val ) ; $ this -> debugSection ( 'Session' , json_encode ( $ this -> di [ 'session' ] -> toArray ( ) ) ) ; }
Sets value to session. Use for authorization.

@param string $key
@param mixed $val
Sets value to session . Use for authorization .