February 2006
Intermediate to advanced
648 pages
14h 53m
English
The Cookie module provides support for server-side management of HTTP cookies. Cookies are used to provide state management in CGI scripts that implement sessions, user logins, shopping carts, and related features. To drop a cookie on a user’s browser, an HTTP server typically adds an HTTP header similar to the following to an HTTP response (see the httplib module):
Set-Cookie: session=8273612; expires=Sun, 18-Feb-2001 15:00:00 GMT; \
path=/; domain=foo.bar.comAlternatively, a cookie can be set by embedding JavaScript in the <head> section of an HTML document:
<SCRIPT LANGUAGE="JavaScript"> document.cookie = "session=8273612; expires=Sun, 18-Feb-2001 15:00:00 GMT; \ Feb 17; Path=/; Domain=foo.bar.com;" </SCRIPT>
The Cookie module simplifies ...
Read now
Unlock full access