(self)
Discard all session cookies.

        Note that the .save() method won't save session cookies anyway, unless
        you ask otherwise by passing a true ignore_discard argument.
Discard all session cookies.
Discard all session cookies .
def clear_session_cookies(self):
        """Discard all session cookies.

        Note that the .save() method won't save session cookies anyway, unless
        you ask otherwise by passing a true ignore_discard argument.

        """
        self._cookies_lock.acquire()
        try:
            for cookie in self:
                if cookie.discard:
                    self.clear(cookie.domain, cookie.path, cookie.name)
        finally:
            self._cookies_lock.release()
def clear_session_cookies ( self ) : self . _cookies_lock . acquire ( ) try : for cookie in self : if cookie . discard : self . clear ( cookie . domain , cookie . path , cookie . name ) finally : self . _cookies_lock . release ( )