Date: 11/22/00
- Next message: Daniel Bondurant: "[phplib] md5.js login taking a long time"
- Previous message: Giancarlo Pinerolo: "[phplib] a loginform in every page and no cancel_login button"
- Maybe in reply to: carlos <email protected>: "[phplib] HELP (login_if BUG?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Daniel Bondurant: "[phplib] md5.js login taking a long time"
- Previous message: Giancarlo Pinerolo: "[phplib] a loginform in every page and no cancel_login button"
- Maybe in reply to: carlos <email protected>: "[phplib] HELP (login_if BUG?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

