I’m trying to generate the text for a persistent cookie in a simple Python web application.
I’m having trouble finding a way to generate the expires field. The text format for the field is somewhat complicated, and I’d rather not write code to generate it myself.
Is there something in Python that will help? I’ve cooked at the docs for cookie and cookielib and they seem to handle a lot of the cookie business, except for generating the expires field
I think you want to do something like this: