mod_python authenhandler example

Peter van Kampen news at
Wed Sep 15 22:20:00 CEST 2004

In article <mailman.3381.1095279486.5135.python-list at>, Golawala, Moiz M (GE Infrastructure) wrote:
> Hi All, 
> I am new to mod_python. I installed it yesterday and was trying out the
> mod_python authenhandler example in the documentation. When I typed in the
> url to go to a web page, sure enough a modpython asked me for the username
> and password and I was in. However when I close and reopen the browser and
> go to the url, I get in without authentication. If I change the expected
> password in the code and reload the page, I am asked for the username and
> password. But once in, I am never authenticated again no matter how often I
> reload the page or even restart the browser.
> I don't know if there is a browser setting in mozilla that is
> remembering the password and username and not authenticating me again. I
> deleted all the cookies, passwords, and history and it still wont work. Does
> anyone have a clue as to what is happening.

Try restarting apache (and therefor mod_python) when you encounter this
problem. My guess it that you'll be asked to authenticate again. If so post
your code to make it easy to spot the problem. (I guess the result is
somehow cached).



Peter van Kampen
pterk -- at --

More information about the Python-list mailing list