Cookie Generator?
M.-A. Lemburg
mal at lemburg.com
Thu Nov 16 11:41:51 EST 2000
David Lees wrote:
>
> Is there a Cookie Generation function built into the 2.0 Python
> somewhere or available as an example? I am looking at the on-line 2.0
> documentation and see 11.17 is titled "Cookie Objects". But I do not
> see a function to generate unique cookies.
It shouldn't be hard to generate those. Just mix current time,
process id, a serial number and perhaps some other "chocolate
chips" in some way and then pass it through MD5. The result should
be fairly unique.
--
Marc-Andre Lemburg
______________________________________________________________________
Company: http://www.egenix.com/
Consulting: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list