Bluz\Session\Session::setId PHP Method

setId() public method

Can safely be called in the middle of a session.
public setId ( string $id ) : Session
$id string
return Session
    public function setId($id)
    {
        if ($this->sessionExists()) {
            throw new SessionException('Session has already been started, to change the session ID call regenerateId()');
        }
        session_id($id);
        return $this;
    }