[Zope] Cookie Crumbler and querystrings

Dieter Maurer dieter@handshake.de
Wed, 20 Nov 2002 20:06:10 +0100


Ben Avery writes:
 > I am building a site where users must log in before being allowed 
 > access. For this I use Cookie Crumbler, but I have a problem with it:
 > 
 > There are some URLs with querystring information, e.g.
 > http://www.mysite.org/opportunity/cancel/?opp_id=29
 > 
 > The first time they try this link, the Cookie Crumbler redirects them 
 > back to the login page for username and password. But after they have 
 > logged in, they get taken back to
 > http://www.mysite.org/opportunity/cancel/index_html
 > without the querystring, which is necessary for the index_html method to 
 > function.
 > 
 > Is there a way to avoid this problem, and to maintain querystring 
 > through the CC login process?
Yes.

Customize the "login_form".
It remembers the original URL in a hidden form control.
Add the "QUERY_STRING" to the value of this control.


Dieter