src/Controller/Session.php
public function useSession()
    {
        $this->session = $this->getRequest()->getAttribute('session');
        
        if (!isset($this->session)) {
            $this->session =& $_SESSION;
        }
    }
public function useSession()
    {
        $this->session = $this->getRequest()->getAttribute('session');
        
        if (!isset($this->session)) {
            $this->session =& $_SESSION;
        }
    }
public function useSession ( ) { $ this -> session = $ this -> getRequest ( ) -> getAttribute ( 'session' ) ; if ( ! isset ( $ this -> session ) ) { $ this -> session = & $ _SESSION ; } }
Link the session to the session property in the controller
Link the session to the session property in the controller