Is it possible to have a python script that does this: response = context.REQUEST.RESPONSE if someCondition: response.expiresCookie('mySitesCookie', path='/') return response.redirect('aPageTemplate') The cookie is not getting removed when someCondition is true. Mark
On Tuesday 30 July 2002 01:52 pm, Mark Bucciarelli wrote:
Is it possible to have a python script that does this:
response = context.REQUEST.RESPONSE if someCondition: response.expiresCookie('mySitesCookie', path='/') return response.redirect('aPageTemplate')
The cookie is not getting removed when someCondition is true.
Mark
Never mind, this works as expected. I had a problem elsewhere in my logic.
Mark Bucciarelli writes:
Is it possible to have a python script that does this:
response = context.REQUEST.RESPONSE if someCondition: response.expiresCookie('mySitesCookie', path='/') return response.redirect('aPageTemplate') This should work.
Are you sure, the cookie is set with "path='/'"? "expiresCookie" must be called with the exact path "setCookie" has been called. Dieter
participants (2)
-
Dieter Maurer -
Mark Bucciarelli