Date: 04/27/00
- Next message: Kristian Köhntopp: "[phplib] Re: Fwd: failure notice"
- Previous message: Jonatan Bagge: "[phplib] Re: [PHPLIB] Sessions"
- In reply to: William Jackson: "[phplib] phplib authentication problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
William Jackson wrote:
> Please Help I need some phplib author style help here
>
> I am trying to get the auth part working.
<--snip-->
Hmm, I might be able to help you out here as I had a similar problem.
I assume that somewhere you are calling your test page by the url
"test.php3?again=yes" or something similar, where "again" is the variable you
feed to $auth->login_if();?
If so, you might be running into the same problem I did, namely, that PHPLIB is
so nice to automatically propagate _all_ "get" vars that every time your login
page calls self_url() to fill in the action directive of the <form> tag. What
you get is an endless loop of login, immediately log out because your script
sees "again=yes" in the "get" vars which is being propagated by self_url().
I'm going to report this to the devel list as a bug. self_url() probably
should not propagate get vars (well, except for the session ID, of course). On
the rare occasion that a user wants to propagate a get var, let them do it
manually.
In the mean time, you need to strip "again=yes", or whatever you are using,
from the url. You can either do this inside of the self_url() function in
session.inc (which is what I did), or, do it after self_url() returns the
string that you put into your form.
> and it states that the name and password where wrong where prints in the
> login screen show that it retruns the correct UID
>
> -------------------------------------------------------------
> I need help with the last part, what could be going wrong?
> cheers
>
Jeff Schmidt
-- "Message sent by jschmid <email protected>"--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Kristian Köhntopp: "[phplib] Re: Fwd: failure notice"
- Previous message: Jonatan Bagge: "[phplib] Re: [PHPLIB] Sessions"
- In reply to: William Jackson: "[phplib] phplib authentication problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

