Cookie question

M

Michael Foord

I could have titles this question 'Cookie monster' I suppose... but
that would have been very cheesy. Anyway, I'm experimenting with the
Cookie module. In the absence of needing anything more complex I've
been using the SimpleCookie class.

How do you set the 'expiry date' of a cookie ? The closest I can get
amounts to setting the 'expires' key of each entry as a morsel object.
I assume if any of the keys (morsels) don't have an expiry date then
the cookie will remain. *Also* what is the difference between the
value and the coded value of a morsel object ? The value doesn't
appear to show at all...

Regards,

Fuzzy

http://www.vooidspace.org.uk/atlantibots/pythonutils.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,684
Latest member
sparada

Latest Threads

Top