[pmwiki-users] authuser

Patrick R. Michaud pmichaud at pobox.com
Tue Jun 21 18:05:48 CDT 2005


On Tue, Jun 21, 2005 at 11:27:31PM +0100, Hans wrote:
>     $AuthUser['htpasswd'] = '.local/.htpasswd';
>     @include_once('cookbook/authuser.php');
>     if ($_SESSION['authid']) exit;
>     if ($AuthId) exit;
> 
> > only kills the script when authentication occurs.  Once the user is
> > authenticated it has no effect on subsequent page loads.
> 
> I don't understand about killing the script, but the last lines with
> 'exit' had that effect on my fumbling experimentation: a white
> screen. I fail to understand how the Author is preserved from
> changes. Could you please explain a bit?

I didn't understand it either, but I think the point was that
one could use this as a diagnostic tool to know when authentication
had taken place (i.e., a valid username and password had been entered).

Pm



More information about the pmwiki-users mailing list