[Tutor] Cookies with CGI

Kent Johnson kent37 at tds.net
Thu Jul 27 03:31:31 CEST 2006


Tim Johnson wrote:
> Hello:
>
> I'd like to set (write) and get (read) cookies on a client
> computer via CGI.
>
> Does python have the libraries to do this. If so, pointers
> to the libraries and documentation is welcomed.

The Cookie module is to help with server-side cookies. Docs and examples 
seem a bit thin but try these:
http://pleac.sourceforge.net/pleac_python/cgiprogramming.html
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325484
http://www.cs.virginia.edu/~lab2q/lesson_7/

Or google "python cgi cookie" ...

Kent



More information about the Tutor mailing list