HTMLgen and Cookies

Anders Eriksson ame at swipnet.se
Wed Jan 19 18:16:27 EST 2000


Hello!

I'm using HTMLgen to create some dynamic HTML pages and I need to use
Cookies on a couple of them.

I have used Cookie.py (by Tim O'Malley) which works very well by it
self (Thanks Tim)

My problem is: How do I use HTMLgen and Cookie.py together?

It's my understanding that the cookies must be sent to the user AFTER
'Content-type: text/html' but BEFORE <DOCTYPE ....

a short code showing how to do this would really be appreciated!!!!

// Anders




More information about the Python-list mailing list