[Zope] cookies

Frank Tegtmeyer fte-sub-zope@fte.to
07 May 2002 10:46:51 +0200


> How can I tell if somebody has cookies disabled in their browser? 
> REQUEST.setCookie doesn't throw an error if cookies are disabled.

How should it? It only sets a header in the response to the
browser. You don't "push" the cookie through the channel into the
users browser.

After setting the cookie you could redirect to the same page (setting
an URL parameter which indicates you already were there). Then you can
test for the presence of the cookie.

Regards, Frank