Can anyone shed some light on this problem? I am working on a site where the screen is divided into a pair of frames -- a left index frame and a workspace frame. The left index consists of links which select pages to be loaded into the workspace. The target pages need to know the index that selected them. Workspace selection is many one. I wrote a small python script that takes a parameter, plants the parameter value as a cookie, and then redirects to URL1. The links in the left index frame thus look like <a href="some/source/setCookie?cookie=value" target=workspace B> The setCookie script is very simple request = container.REQUEST RESPONSE = request.RESPONSE RESPONSE.setCookie('myCookie', cookievalue ) RESPONSE.redirect(request.URL1) The results are mixed. I constructed a little test case and have tried it on four different browsers. It works on some and not on others. All redirect to the right place, but some of the browsers don't set the cookie on the flyB. This is all running on a vanilla Zope 2.5 installation using Zope's native server. Wisdom and suggestions for a workaround greatly appreciated. Using this technique will greatly simplify the site.
Dieter, Thanks for the pointer. I searched zope.org and Google looking for a "Cookie Spec" and came up empty but for Appendix B of the Zope Book. On Fri, 26 Apr 2002, Dieter Maurer wrote:
Dennis Allison writes:
... Cookies not delivered ... RESPONSE.setCookie('myCookie', cookievalue ) Add a "path='/'".
See the cookie spec for details.
Dieter
Dennis Allison writes:
Dieter, Thanks for the pointer. I searched zope.org and Google looking for a "Cookie Spec" and came up empty but for Appendix B of the Zope Book.
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> has a reference... Dieter
Dieter, Thanks for the pointer. I searched zope.org and Google looking for a "Cookie Spec" and came up empty but for Appendix B of the Zope Book.
I went to www.google.com entered cookie spec and clicked on I'm Feeling Lucky. http://www.netscape.com/newsref/std/cookie_spec.html
participants (3)
-
Dennis Allison -
Dieter Maurer -
Steve Drees