parameters: (self)
docstring: 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.
docstring_summary: Discard all session cookies.
docstring_tokens: Discard all session cookies .
function: 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()
function_tokens: 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 ( )