Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Doc/library/http.cookiejar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,23 @@
or an explicit ``discard`` cookie-attribute). For interactive browsers, the end
of a session usually corresponds to closing the browser window.

Note that the :meth:`save` method won't save session cookies anyway, unless you

Check warning on line 247 in Doc/library/http.cookiejar.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:meth reference target not found: save [ref.meth]

Check warning on line 247 in Doc/library/http.cookiejar.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:meth reference target not found: save [ref.meth]
ask otherwise by passing a true *ignore_discard* argument.


.. method:: CookieJar.clear_expired_cookies()

Discard all expired cookies.

Discards all contained cookies that have a true :attr:`is_expired` attribute

Check warning on line 255 in Doc/library/http.cookiejar.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:attr reference target not found: is_expired [ref.attr]

Check warning on line 255 in Doc/library/http.cookiejar.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:attr reference target not found: is_expired [ref.attr]
(usually because their expiration time have passed)

You probably don't need to call this method because expired cookies are never

Check warning on line 258 in Doc/library/http.cookiejar.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:meth reference target not found: save [ref.meth]

Check warning on line 258 in Doc/library/http.cookiejar.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:meth reference target not found: save [ref.meth]
sent back to the server (provided you're using :class:`DefaultCookiePolicy`),
this method is called by :class:`CookieJar` itself every so often, and the
:meth:`save` method won't save expired cookies anyway (unless you ask
otherwise by passing a true *ignore_expires* argument).

:class:`FileCookieJar` implements the following additional methods:


Expand Down
Loading