[Zope] autologin with CookieCrumbler

Dieter Maurer dieter at handshake.de
Tue Oct 28 15:24:15 EST 2003


Sebastian Krollmann wrote at 2003-10-27 16:30 +0100:
 > as suggested in previous postings, I tried to log in via setting 2 cookies
 > named ' __ac_name' and '__ac_password' providing username and password-info
 > with CookieCrumbler. But despite I can verify the two cookies in the
 > request, I get the loginform from CookieCrumbler and some query string in
 > the url with something like 'disable_login=1'.
 > 
 > Looking into the CookieCrumbler-Code it seems that this should be possible
 > as the request is searched for the two cookies prior showing the loginform.
 > 
 > Has anybody done this so far or are there any does and dont's to achiev
 > this?

"CookieCrumbler" has a method to login (and set cookies as appropriate)
given username and password. Look (again) at its code.

-- 
Dieter



More information about the Zope mailing list