SmartCookie SmartCookie supports arbitrary objects as cookie values. If the object is a string, then it is quoted. If the object is not a string, however, then SmartCookie will use cPickle to serialize the object into a string representation.
Note: Large cookie values add overhead because they must be retransmitted on every HTTP transaction.
Note: HTTP has a 2k limit on the size of a cookie. This class does not check for this limit, so be careful!!!
There are no implemented interfaces.
fromkeys
(type: builtin_function_or_method
)
<built-in method fromkeys of type object at 0x835a364>
clear(...)
copy(...)
get(...)
has_key(...)
items(...)
iteritems(...)
iterkeys(...)
itervalues(...)
keys(...)
pop(...)
popitem(...)
setdefault(...)
update(...)
values(...)
js_output(attrs=None)
Return a string suitable for JavaScript.
load(rawdata)
Load cookies from a string (presumably HTTP_COOKIE) or
from a dictionary. Loading cookies from a dictionary d
is equivalent to calling:
map(Cookie.__setitem__, d.keys(), d.values())
output(attrs=None, header='Set-Cookie:', sep='\n')
Return a string suitable for HTTP.
value_decode(val)
value_encode(val)
There are no known subclasses.