RE: [phplib] Default authentication again!! From: Matt Williams (matt <email protected>)
Date: 10/19/00

> Then, if I try to relogin as a different user, stands in the <form>-tag of
> loginform.ihtml the following action-URL:
> <form action="/myAdminManager/index.php3?again=yes&My_Session=
> 44ee155594b1c916f01ed35d29e80244" method=post>
> But when I try to login now, I get the message username invalid. BTW,
> $allowcache is "no".
> So what's happening there?
> It looks to me, that the user, is authenticated as usual, because the page
> starts with:
> page_open(array("sess" => "My_Session",
> "auth" => "My_Auth"));
> But then, because of again=yes in the action-URL, he is logged out,
> because the function auth->login_if() is called, isn't she?
> Maybe that's the reason, why I can't relogin, not even with the test-
> page of phplib default.php3!!!
> It would be nice, if anybody could explain to me, how this should work!

Hi Dominic.

I found a way round this by using str_replace() in loginform.ihtml to remove
the again=yesform the action url.

A bit scrappy but it works :-)

I'd like to know if anyone has a better solution

M@

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