If you want to continue using basic authentication, then you can look into changing the authentication realm dynamically when you want a user to log out. The new realm will trigger the client to ask for new credentials to authenticate in the new realm.
I don't know if your current method will allow that, but you could do it with a custom mod_perl Authentication Handler.
Basic authentication is generally not considered that flexible when it comes to allowing users to log out, but the realm trick can work.
Cees
| [reply] |
There is no consistent reliable way to ensure that a browser will stop sending BasicAuth once properly authenticated.
And since you ruled out cookies, that leaves you with managled URLs or hidden form elements as the only other ways of tracking session.
Pick one, and use it. There's really no alternatives.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply. | [reply] |
How are you doing authentication now?
| [reply] |
I'm currently using authdbm in the Apache httpd.conf file. I was on the chatterbox and perrin pointed me to Apache::AuthCookieURL. If you know of another solution or have any examples I would greatly appreciate it.
I am also running with mod_perl. I've seen someone mention using cookies but then using pathinfo instead do you have any information about that? I think they were using Apache::Session.
I want to be able to make Apache reprompt the user for authentication if they go back to any of the restricted pages.
| [reply] |
Status header. I'm not sure how to do it under mod_perl.
| [reply] |