src/main/php/session/id/WebBoundSessionId.php
public function regenerate(): SessionId
    {
        $this->id = $this->create();
        $this->response->addCookie(
                Cookie::create($this->sessionName, $this->id)->forPath('/')
        );
        return $this;
    }
public function regenerate(): SessionId
    {
        $this->id = $this->create();
        $this->response->addCookie(
                Cookie::create($this->sessionName, $this->id)->forPath('/')
        );
        return $this;
    }
public function regenerate ( ) : SessionId { $ this -> id = $ this -> create ( ) ; $ this -> response -> addCookie ( Cookie :: create ( $ this -> sessionName , $ this -> id ) -> forPath ( '/' ) ) ; return $ this ; }
stores session id for given session name

@return  \stubbles\webapp\session\id\SessionId
stores session id for given session name