mod_python authenhandler example

  • Thread starter Golawala, Moiz M (GE Infrastructure)
  • Start date
G

Golawala, Moiz M (GE Infrastructure)

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.


Thanks
Moiz Golawala
 
P

Peter van Kampen

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).

Hth,

PterK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,677
Latest member
MoisesKoeh

Latest Threads

Top