1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>4.7 Cookie - HTTP State Management</title>
5
<META NAME="description" CONTENT="4.7 Cookie - HTTP State Management">
6
<META NAME="keywords" CONTENT="modpython">
7
<META NAME="resource-type" CONTENT="document">
8
<META NAME="distribution" CONTENT="global">
9
<link rel="STYLESHEET" href="modpython.css">
10
<link rel="first" href="modpython.html">
11
<link rel="contents" href="contents.html" title="Contents">
12
<link rel="index" href="genindex.html" title="Index">
13
<LINK REL="next" href="pyapi-sess.html">
14
<LINK REL="previous" href="pyapi-util.html">
15
<LINK REL="up" href="pythonapi.html">
16
<LINK REL="next" href="pyapi-cookie-classes.html">
19
<DIV CLASS="navigation">
20
<table align="center" width="100%" cellpadding="0" cellspacing="2">
22
<td><A href="pyapi-util-funcs.html"><img src="icons/previous.gif"
23
border="0" height="32"
24
alt="Previous Page" width="32"></A></td>
25
<td><A href="pythonapi.html"><img src="icons/up.gif"
26
border="0" height="32"
27
alt="Up One Level" width="32"></A></td>
28
<td><A href="pyapi-cookie-classes.html"><img src="icons/next.gif"
29
border="0" height="32"
30
alt="Next Page" width="32"></A></td>
31
<td align="center" width="100%">Mod_python Manual</td>
32
<td><A href="contents.html"><img src="icons/contents.gif"
33
border="0" height="32"
34
alt="Contents" width="32"></A></td>
35
<td><img src="icons/blank.gif"
36
border="0" height="32"
37
alt="" width="32"></td>
38
<td><A href="genindex.html"><img src="icons/index.gif"
39
border="0" height="32"
40
alt="Index" width="32"></A></td>
42
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-util-funcs.html">4.6.3 Other functions</A>
43
<b class="navlabel">Up:</b> <a class="sectref" href="pythonapi.html">4. Python API</A>
44
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-cookie-classes.html">4.7.1 Classes</A>
47
<!--End of Navigation Panel-->
49
<H1><A NAME="SECTION006700000000000000000"> </A>
51
4.7 <tt class="module">Cookie</tt> - HTTP State Management
56
The <tt class="module">Cookie</tt> module provides convenient ways for creating,
57
parsing, sending and receiving HTTP Cookies, as defined in the
58
specification published by Netscape.
61
<div class="note"><b class="label">Note:</b>
62
Even though there are official IETF RFC's describing HTTP State
63
Management Mechanism using cookies, the de facto standard supported
64
by most browsers is the original Netscape specification.
65
Furthermore, true compliance with IETF standards is actually
66
incompatible with many popular browsers, even those that claim to be
67
RFC-compliant. Therefore, this module supports the current common
68
practice, and is not fully RFC compliant.
73
<p class="heading"><b>See Also:</b></p>
75
<dl compact class="seetitle">
76
<dt><em class="citetitle"><a href="http://wp.netscape.com/newsref/std/cookie_spec.html"
77
>Persistent Client State - HTTP Cookies</a></em>
78
<dd>for the original Netscape specification.
80
<dl compact class="seerfc">
81
<dt><a href="http://www.faqs.org/rfcs/rfc2109.html"
82
title="HTTP State Management Mechanism"
83
>RFC 2109, <em>HTTP State Management Mechanism</em></a>
84
<dd>for the first RFC on Cookies.
86
<dl compact class="seerfc">
87
<dt><a href="http://www.faqs.org/rfcs/rfc2964.html"
88
title="Use of HTTP State Management"
89
>RFC 2964, <em>Use of HTTP State Management</em></a>
90
<dd>for guidelines on using Cookies.
92
<dl compact class="seerfc">
93
<dt><a href="http://www.faqs.org/rfcs/rfc2965.html"
94
title="HTTP State Management Mechanism"
95
>RFC 2965, <em>HTTP State Management Mechanism</em></a>
96
<dd>for the latest IETF standard.
98
<dl compact class="seetitle">
99
<dt><em class="citetitle"><a href="http://arxiv.org/abs/cs.SE/0105018"
100
>HTTP Cookies: Standards, Privacy, and Politics</a></em>
101
<dd>by David M. Kristol for an
103
of the issues surrounding standardization of Cookies.
110
<!--Table of Child-Links-->
111
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
113
<UL CLASS="ChildLinks">
114
<LI><A href="pyapi-cookie-classes.html">4.7.1 Classes</a>
115
<LI><A href="pyapi-cookie-func.html">4.7.2 Functions</a>
116
<LI><A href="pyapi-cookie-example.html">4.7.3 Examples</a>
118
<!--End of Table of Child-Links-->
120
<DIV CLASS="navigation">
122
<table align="center" width="100%" cellpadding="0" cellspacing="2">
124
<td><A href="pyapi-util-funcs.html"><img src="icons/previous.gif"
125
border="0" height="32"
126
alt="Previous Page" width="32"></A></td>
127
<td><A href="pythonapi.html"><img src="icons/up.gif"
128
border="0" height="32"
129
alt="Up One Level" width="32"></A></td>
130
<td><A href="pyapi-cookie-classes.html"><img src="icons/next.gif"
131
border="0" height="32"
132
alt="Next Page" width="32"></A></td>
133
<td align="center" width="100%">Mod_python Manual</td>
134
<td><A href="contents.html"><img src="icons/contents.gif"
135
border="0" height="32"
136
alt="Contents" width="32"></A></td>
137
<td><img src="icons/blank.gif"
138
border="0" height="32"
139
alt="" width="32"></td>
140
<td><A href="genindex.html"><img src="icons/index.gif"
141
border="0" height="32"
142
alt="Index" width="32"></A></td>
144
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-util-funcs.html">4.6.3 Other functions</A>
145
<b class="navlabel">Up:</b> <a class="sectref" href="pythonapi.html">4. Python API</A>
146
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-cookie-classes.html">4.7.1 Classes</A>
148
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
150
<!--End of Navigation Panel-->