public function addSessionAttribute(string $key, string $value)
    {
        $this->response->sessionAttributes[$key] = $value;
    }
public function addSessionAttribute(string $key, string $value)
    {
        $this->response->sessionAttributes[$key] = $value;
    }
public function addSessionAttribute ( string $ key , string $ value ) { $ this -> response -> sessionAttributes [ $ key ] = $ value ; }
Add a new attribute to response session attributes.

@param string $key
@param string $value
Add a new attribute to response session attributes .