[Zope] Re: reading a cookie from another PATH??
Trevor Toenjes
zope@toenjes.com
Thu, 6 Sep 2001 22:19:18 -0400
AWESOME! It works ... and I have no idea why? ;)
1. When do you use REQUEST vs. RESPONSE(REQUEST) ?
2. Is REQUEST['GUID'] the trick to place GUID in the namespace for every
path?
Thanks,
-Trevor
> Try this instead:
>
> <dtml-call "REQUEST.set('GUID', ZopeTime().timeTime())">
> <dtml-call "RESPONSE.setCookie('GUID',REQUEST['GUID'],
> expires='Wed, 19 Feb
> 2020 14:28:00 GMT',domain='.bar.com', path='/')">
>
> Or in a Python script:
>
> req = context.REQUEST
> guid = context.ZopeTime().timeTime()
> req.set('GUID', guid)
> req.RESPONSE.setCookie(
> 'GUID',
> guid,
> expires='Wed, 19 Feb 2020 14:28:00 GMT',
> domain='.bar.com',
> path='/'
> )
>