Auth_HTTP works great but seems to store the username and password somehow so that after you've logged out and destroyed the session, you're logged out in terms of the sessions being destroyed. But, when you revisit the Auth_HTTP it remembers the previous info you entered so doesn't ask you again and just logs you in automattically.
Was thinking it might have something to do with the realm name, as I can't find any info on what the realm name does, is used for, etc.
If I randomize the realm name maybe that will force it to re-ask.
Anyone had experience with this?
Was thinking it might have something to do with the realm name, as I can't find any info on what the realm name does, is used for, etc.
If I randomize the realm name maybe that will force it to re-ask.
Anyone had experience with this?
-
Re: PEAR Auth_HTTP Module
Thu, March 8, 2007 - 10:13 AMI've never found Apache's http access control very useful, because of this behavior. Instead, I use PHP's sessions, which works 100% of the time. It's easy, manages the cookie data I want to be able to carry between parts of a website, and actually clears the session when you destroy it. -
-
Re: PEAR Auth_HTTP Module
Thu, March 8, 2007 - 11:32 AMyeah.. or any scripting languages $_SESSION equiv, whatever the platform may be. I dnt think ive ever used Auth_HTTP except for some simple director lockdown on my home server.. but for actual sites... always the $lang session.
-
-
Re: PEAR Auth_HTTP Module
Wed, May 16, 2007 - 9:57 PMThanks to everyone who replied. The PEAR Auth didn't do what I wanted so I couldn't use it in the end.
I want to try MOD AUTH MYSQL, the idea is to do a normal database login but for the parts of the site that are public but have private elements I'd like to have certain folders have .htaccess security that checks the person is logged in. Mod_auth_mysql is already installed on the server so all I have to do is set the login info during the login.
In the login I'm setting the username like this...
$PHP_AUTH_USER = $username;
or
$_SERVER['PHP_AUTH_USER'] = $username;
but a check to see if its been set it fails. Can anyone tell me if I have to do something on top of what I've just posted?
Thanks -
-
Re: PEAR Auth_HTTP Module
Thu, May 17, 2007 - 6:15 PMsorry, i completely misunderstood that one. Please ignore the above, all sorted.
-