Re: [phplib] Authenticating using an "external" form From: Klaus Seidenfaden (ks <email protected>)
Date: 05/28/01

-----Oprindelig meddelelse-----
Fra: Anatole <varin <email protected>>

>So, they'll enter their username and password and be directed to the
>"protected_page.php"
>
>I start "protected_page.php" with:
>page_open(array("sess" => "groovy_Session", "auth" => "groovy_Auth"));
>
>I thought that with the variables username and password being sent that it
>would function similar to those variables being passed through the logon
>form... Alas, it is not so. Upon submission of the above form from
>general.html, I'm always greeted with the default log on page generated from
>the phpLib template.

That's because there's no $auth object yet when you call page_open(), so you need to do something before calling it. Try looking into the auth code and find out what it wants. I guess you should somehow imitate submission of the standard login form.

-- Klaus.

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