Networking and Internet Modules

http.cookiejar

Stores HTTP client cookies and applies cookie acceptance and return policies. CookieJar can be connected to urllib request handlers; persistent subclasses store cookies on disk. A cookie jar is sensitive state, not a general authentication mechanism.

Formal Syntax & Structure

python syntaxpython
import http.cookiejar

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
from http.cookiejar import CookieJarjar = CookieJar()print(len(jar))
Python Reference