SerialCookie SerialCookie supports arbitrary objects as cookie values. All values are serialized (using cPickle) before being sent to the client. All incoming values are assumed to be valid Pickle representations. IF AN INCOMING VALUE IS NOT IN A VALID PICKLE FORMAT, THEN AN EXCEPTION WILL BE RAISED.
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 0x8359f64>
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.