1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<link rel="STYLESHEET" href="modpython.css" type='text/css'>
5
<link rel="first" href="modpython.html" title='Mod_python Manual'>
6
<link rel='contents' href='contents.html' title="Contents">
7
<link rel='index' href='genindex.html' title='Index'>
8
<link rel='last' href='about.html' title='About this document...'>
9
<link rel='help' href='about.html' title='About this document...'>
10
<LINK REL="next" href="pyapi-sess.html">
11
<LINK REL="prev" href="pyapi-util.html">
12
<LINK REL="parent" href="pythonapi.html">
13
<LINK REL="next" href="pyapi-cookie-classes.html">
14
<meta name='aesop' content='information'>
15
<META NAME="description" CONTENT="Cookie - HTTP State Management">
16
<META NAME="keywords" CONTENT="modpython">
17
<META NAME="resource-type" CONTENT="document">
18
<META NAME="distribution" CONTENT="global">
4
<link rel="STYLESHEET" href="modpython.css" type='text/css' />
5
<link rel="first" href="modpython.html" title='Mod_python Manual' />
6
<link rel='contents' href='contents.html' title="Contents" />
7
<link rel='index' href='genindex.html' title='Index' />
8
<link rel='last' href='about.html' title='About this document...' />
9
<link rel='help' href='about.html' title='About this document...' />
10
<link rel="next" href="pyapi-sess.html" />
11
<link rel="prev" href="pyapi-util.html" />
12
<link rel="parent" href="pythonapi.html" />
13
<link rel="next" href="pyapi-cookie-classes.html" />
14
<meta name='aesop' content='information' />
19
15
<title>4.7 Cookie - HTTP State Management</title>
22
18
<DIV CLASS="navigation">
19
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
23
20
<table align="center" width="100%" cellpadding="0" cellspacing="2">
25
<td><a rel="prev" title="4.6.4 Other functions"
26
href="pyapi-util-funcs.html"><img src='previous.gif'
27
border='0' height='32' alt='Previous Page' width='32'></A></td>
28
<td><a rel="parent" title="4. Python API"
29
href="pythonapi.html"><img src='up.gif'
30
border='0' height='32' alt='Up One Level' width='32'></A></td>
31
<td><a rel="next" title="4.7.1 Classes"
32
href="pyapi-cookie-classes.html"><img src='next.gif'
33
border='0' height='32' alt='Next Page' width='32'></A></td>
22
<td class='online-navigation'><a rel="prev" title="4.6.4 Other functions"
23
href="pyapi-util-funcs.html"><img src='previous.png'
24
border='0' height='32' alt='Previous Page' width='32' /></A></td>
25
<td class='online-navigation'><a rel="parent" title="4. Python API"
26
href="pythonapi.html"><img src='up.png'
27
border='0' height='32' alt='Up One Level' width='32' /></A></td>
28
<td class='online-navigation'><a rel="next" title="4.7.1 Classes"
29
href="pyapi-cookie-classes.html"><img src='next.png'
30
border='0' height='32' alt='Next Page' width='32' /></A></td>
34
31
<td align="center" width="100%">Mod_python Manual</td>
35
<td><a rel="contents" title="Table of Contents"
36
href="contents.html"><img src='contents.gif'
37
border='0' height='32' alt='Contents' width='32'></A></td>
38
<td><img src='blank.gif'
39
border='0' height='32' alt='' width='32'></td>
40
<td><a rel="index" title="Index"
41
href="genindex.html"><img src='index.gif'
42
border='0' height='32' alt='Index' width='32'></A></td>
32
<td class='online-navigation'><a rel="contents" title="Table of Contents"
33
href="contents.html"><img src='contents.png'
34
border='0' height='32' alt='Contents' width='32' /></A></td>
35
<td class='online-navigation'><img src='blank.png'
36
border='0' height='32' alt='' width='32' /></td>
37
<td class='online-navigation'><a rel="index" title="Index"
38
href="genindex.html"><img src='index.png'
39
border='0' height='32' alt='Index' width='32' /></A></td>
41
<div class='online-navigation'>
44
42
<b class="navlabel">Previous:</b>
45
43
<a class="sectref" rel="prev" href="pyapi-util-funcs.html">4.6.4 Other functions</A>
46
44
<b class="navlabel">Up:</b>
47
45
<a class="sectref" rel="parent" href="pythonapi.html">4. Python API</A>
48
46
<b class="navlabel">Next:</b>
49
47
<a class="sectref" rel="next" href="pyapi-cookie-classes.html">4.7.1 Classes</A>
52
51
<!--End of Navigation Panel-->
54
<H1><A NAME="SECTION006700000000000000000"> </A>
53
<H1><A NAME="SECTION006700000000000000000"></A><A NAME="pyapi-cookie"></A>
56
55
4.7 <tt class="module">Cookie</tt> - HTTP State Management
57
<A NAME="module-Cookie"></A>
61
60
The <tt class="module">Cookie</tt> module provides convenient ways for creating,
84
83
<div class="seealso">
85
<p class="heading"><b>See Also:</b></p>
84
<p class="heading">See Also:</p>
87
<dl compact class="seetitle">
86
<dl compact="compact" class="seetitle">
88
87
<dt><em class="citetitle"><a href="http://wp.netscape.com/newsref/std/cookie_spec.html"
89
>Persistent Client State - HTTP Cookies</a></em>
90
<dd>for the original Netscape specification.
88
>Persistent Client State - HTTP Cookies</a></em></dt>
89
<dd>for the original Netscape specification.</dd>
92
<dl compact class="seerfc">
91
<dl compact="compact" class="seerfc">
93
92
<dt><a href="http://www.faqs.org/rfcs/rfc2109.html"
94
93
title="HTTP State Management Mechanism"
95
94
>RFC 2109, <em>HTTP State Management Mechanism</em></a>
96
95
<dd>for the first RFC on Cookies.
98
<dl compact class="seerfc">
97
<dl compact="compact" class="seerfc">
99
98
<dt><a href="http://www.faqs.org/rfcs/rfc2964.html"
100
99
title="Use of HTTP State Management"
101
100
>RFC 2964, <em>Use of HTTP State Management</em></a>
102
101
<dd>for guidelines on using Cookies.
104
<dl compact class="seerfc">
103
<dl compact="compact" class="seerfc">
105
104
<dt><a href="http://www.faqs.org/rfcs/rfc2965.html"
106
105
title="HTTP State Management Mechanism"
107
106
>RFC 2965, <em>HTTP State Management Mechanism</em></a>
108
107
<dd>for the latest IETF standard.
110
<dl compact class="seetitle">
109
<dl compact="compact" class="seetitle">
111
110
<dt><em class="citetitle"><a href="http://arxiv.org/abs/cs.SE/0105018"
112
>HTTP Cookies: Standards, Privacy, and Politics</a></em>
111
>HTTP Cookies: Standards, Privacy, and Politics</a></em></dt>
113
112
<dd>by David M. Kristol for an
114
113
excellent overview
115
of the issues surrounding standardization of Cookies.
114
of the issues surrounding standardization of Cookies.</dd>
120
<p><br /></p><hr class='online-navigation' />
121
<div class='online-navigation'>
122
122
<!--Table of Child-Links-->
123
123
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
128
128
<LI><A href="pyapi-cookie-example.html">4.7.3 Examples</a>
130
130
<!--End of Table of Child-Links-->
132
133
<DIV CLASS="navigation">
134
<div class='online-navigation'>
134
136
<table align="center" width="100%" cellpadding="0" cellspacing="2">
136
<td><a rel="prev" title="4.6.4 Other functions"
137
rel="prev" title="4.6.4 Other functions"
138
href="pyapi-util-funcs.html"><img src='previous.gif'
139
border='0' height='32' alt='Previous Page' width='32'></A></td>
140
<td><a rel="parent" title="4. Python API"
141
rel="parent" title="4. Python API"
142
href="pythonapi.html"><img src='up.gif'
143
border='0' height='32' alt='Up One Level' width='32'></A></td>
144
<td><a rel="next" title="4.7.1 Classes"
145
rel="next" title="4.7.1 Classes"
146
href="pyapi-cookie-classes.html"><img src='next.gif'
147
border='0' height='32' alt='Next Page' width='32'></A></td>
138
<td class='online-navigation'><a rel="prev" title="4.6.4 Other functions"
139
href="pyapi-util-funcs.html"><img src='previous.png'
140
border='0' height='32' alt='Previous Page' width='32' /></A></td>
141
<td class='online-navigation'><a rel="parent" title="4. Python API"
142
href="pythonapi.html"><img src='up.png'
143
border='0' height='32' alt='Up One Level' width='32' /></A></td>
144
<td class='online-navigation'><a rel="next" title="4.7.1 Classes"
145
href="pyapi-cookie-classes.html"><img src='next.png'
146
border='0' height='32' alt='Next Page' width='32' /></A></td>
148
147
<td align="center" width="100%">Mod_python Manual</td>
149
<td><a rel="contents" title="Table of Contents"
150
rel="contents" title="Table of Contents"
151
href="contents.html"><img src='contents.gif'
152
border='0' height='32' alt='Contents' width='32'></A></td>
153
<td><img src='blank.gif'
154
border='0' height='32' alt='' width='32'></td>
155
<td><a rel="index" title="Index"
156
rel="index" title="Index"
157
href="genindex.html"><img src='index.gif'
158
border='0' height='32' alt='Index' width='32'></A></td>
148
<td class='online-navigation'><a rel="contents" title="Table of Contents"
149
href="contents.html"><img src='contents.png'
150
border='0' height='32' alt='Contents' width='32' /></A></td>
151
<td class='online-navigation'><img src='blank.png'
152
border='0' height='32' alt='' width='32' /></td>
153
<td class='online-navigation'><a rel="index" title="Index"
154
href="genindex.html"><img src='index.png'
155
border='0' height='32' alt='Index' width='32' /></A></td>
157
<div class='online-navigation'>
160
158
<b class="navlabel">Previous:</b>
161
159
<a class="sectref" rel="prev" href="pyapi-util-funcs.html">4.6.4 Other functions</A>
162
160
<b class="navlabel">Up:</b>
163
161
<a class="sectref" rel="parent" href="pythonapi.html">4. Python API</A>
164
162
<b class="navlabel">Next:</b>
165
163
<a class="sectref" rel="next" href="pyapi-cookie-classes.html">4.7.1 Classes</A>
167
<span class="release-info">Release 3.2.10, documentation updated on July 19, 2006.</span>
167
<span class="release-info">Release 3.3.1, documentation updated on January 29, 2007.</span>
169
169
<!--End of Navigation Panel-->