Mir will es einfach nicht gelingen Cookies zu setzten. Ich glaub ich verstehe noch nicht wie das gehen soll...
Hab zwar schon nachgeschaut, aber:
http://python.sandtner.org/viewtopic.php?p=4679
http://python.sandtner.org/viewtopic.php?p=7432#7432
hilft auch nicht weiter
Code: Alles auswählen
if os.environ.has_key('HTTP_COOKIE'):
print "Cookies gibt es!"
C = SimpleCookie(os.environ['HTTP_COOKIE'])
print "CookieAnzahl:",len(C)
print C
else:
print "Cookies gibt es nicht!!!!<p>"
C = SimpleCookie()
C["fig"] = "newton"
C["sugar"] = "wafer"
print C