public function setUseSession($useSession)
    {
        $this->useSession = (bool)$useSession;
        if ($useSession) {
            SessionHandler::enable();
        } else {
            SessionHandler::disable();
        }
        return $this;
    }