Lines Matching refs:cookie
1 """Mozilla / Netscape cookie loading / saving."""
27 In particular, the cookie version and port number information is lost,
75 # cookies.txt regards 'Set-Cookie: foo' as a cookie
77 # cookie with no value.
122 for cookie in self:
123 if not ignore_discard and cookie.discard:
125 if not ignore_expires and cookie.is_expired(now):
127 if cookie.secure: secure = "TRUE"
129 if cookie.domain.startswith("."): initial_dot = "TRUE"
131 if cookie.expires is not None:
132 expires = str(cookie.expires)
135 if cookie.value is None:
136 # cookies.txt regards 'Set-Cookie: foo' as a cookie
138 # cookie with no value.
140 value = cookie.name
142 name = cookie.name
143 value = cookie.value
145 "\t".join([cookie.domain, initial_dot, cookie.path,