RE: [phplib] HELP (login_if BUG?) From: David Jones (david.jones <email protected>)
Date: 11/22/00

Hi,
  I had this problem earlier this week and have got around it today by just
using the line

$auth->login_if( $auth->auth["uid"] == "nobody" );

at the top of every page that requires a "real" username. This stops it
unathenticating "real" users

Hope that helps

Dave Jones
Web Developer
County Durham Online
http://www.cdol.co.uk/

-----Original Message-----
From: carlos <email protected> [mailto:carlos <email protected>]
Sent: Monday, November 20, 2000 12:19 PM
To: phplib <email protected>
Subject: [phplib] HELP (login_if BUG?)

The example code at "defauth.php3" seems buggy.
Every time you call that page with "?again=yes" appended, the current code
will "unauth" the current user (nobody in the first call, kris or other in
the next) and call "start" to authenticate a valid user.
Because you always print the same url in the action of the "loginform"
(i.e. "/defauth.php3?again=yes") you enter in an infinite loop and never
achieve to authenticate.

Am i correct? Is it a bug in the example code or in the login_if function?

Please answer me!!!!

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>