Hi,
With WebOB, set_cookie(x,x, max_age = 3600, ...) will add a field to
headers like this:
*'set-cookie': 'ck_cookie=xxx; Domain=.xxx.com; expires="Wed, 16 Apr
2008 00:26:12 GMT";Max-Age=3600
*
but seems the 'expires' date incorrect, may be it
should be "%a, %d-%b-%Y %H:%M:%S GMT"?
I have tried to parse set-cookie string with mod_python's Cookie.parse()
function,
it raised a ValueError:
*
Invalid expires time: "Wed, 16 Apr 2008 00:26:12 GMT"*
I have refer to netscape Cookie spec, found this:
*expires*=/DATE/
The date string is formatted as:
Wdy, DD-Mon-YYYY HH:MM:SS GMT
Is my mistake or this cookie spec outdate? thanks
sorry for my english :-D
--
Regards,
alec
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users