def delprincipal(self): options = self.options self.cookies.append( HTTPCookie.delete( options["AUTH_COOKIE"], path=self.request.root_path + options["AUTH_COOKIE_PATH"], domain=options["AUTH_COOKIE_DOMAIN"], options=options, ) ) self.__principal = None
def delresubmission(self): options = self.options self.__resubmission = None name = options["RESUBMISSION_NAME"] self.cookies = list(filter(lambda c: c.name != name, self.cookies)) self.cookies.append(HTTPCookie.delete(name, path=self.request.root_path, options=options))
def delxsrf_token(self): options = self.options self.__xsrf_token = None self.cookies.append(HTTPCookie.delete(options["XSRF_NAME"], path=self.request.root_path, options=options))