[PHPLIB] Preauth once again. From: KS (ksiero <email protected>)
Date: 10/30/99

Hi there.
We have developed a WWW application using phplib, we would like to have
tiny login forms on some of our pages that are on other server and don't use
phplib at all.
I have been reading the documentation and created the
function auth_preauth (
        $uid="test";
        return $uid;
}

inside my auth class extending Auth;

On other page I have:
<form action="http://our.pagethatusephplib.com/" method="post">
<input type="text" name="user_name">
<input type="password" name="password">
<input type="submit" value="login there">
</form>

The page that uses phplib authentication has:
page_open(array("sess" => "my_session", "auth"=>"my_auth"));

Now I understand I should be authenticated everytime I press the login there
button. But the strangely the login form shows up. Only then when I enter
the correct username and password. It seems like preauth isn't called at all ??
Should I just forget about preauth and just make forms on another pages if
it works that way ?

Could anyone supply me with working examples of pre_auth usage, both
the local.inc code , and acctual usage on the pages ??

Thank you in advance.
I am using phplib 7.1
Chris
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.