cookielib.FileCookieJar.clear_session_cookies

FileCookieJar.clear_session_cookies()

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.