[Tutor] cookie expiration date format

Tim Johnson tim at johnsons-web.com
Fri Mar 16 17:31:42 CET 2007


Hi:
I want to be able to expire a cookie programmatically.
In other languages, I just set the expiration date to 'yesterday'.
If I look at the documentation at:
http://docs.python.org/lib/node644.html
for the Cookie object, I see the following:
-----------------------------------------------------------
expires
    Integer expiry date in seconds since epoch,
-----------------------------------------------------------
I'm not clear what datatype is needed here.
Can anyone clarify this for me?
Thanks
Tim
-- 
Tim Johnson <tim at johnsons-web.com>
Palmer, Alaska, USA


More information about the Tutor mailing list