Use cookies with Zope and rfc 2109 |
Created by jmunoz . Last modified 2003-10-13 11:43:03. |
Use cookies with Zope and rfc 2109 |
Following the rfc 2109 (http://www.ietf.org/rfc/rfc2109.txt), and looking at zope sources (_cookie_list function at lib/python/ZPublisher/HTTPResponse.py), it seems that there is a better appropiated way to set a cookie expiration date with zope than setting the "expires" keyword argument of the setCookie function: RESPONSE.setCookie( Where max_age means (see rfc): Max-Age=delta-seconds Optional. The Max-Age attribute defines the lifetime of the cookie, in seconds. The delta-seconds value is a decimal non- negative integer. After delta-seconds seconds elapse, the client should discard the cookie. A value of zero means the cookie should be discarded immediately. |