Hi, On Mon, 11 Feb 2002 10:59:40 +0000 "Negrea Mihai" <[EMAIL PROTECTED]> wrote:
> Hi! > > I've been playing with midgard trying to do a form authentication. > after the user sends the user and the password I call > mgd_auth_midgard($username, $password, true) so that a cookie will be sent to > the browser and user will be authenticated. > I call this function from the ROOT element but before any output is sent to > the browser. > If the username and password are correct the functions returns true and sets > the required cookie but the midgard object does not get updated (the > $midgard->user is still set to 0 and i've been trying to authentifie with uid > 5) Call the function mgd_get_midgard() right after mgd_auth_midgard. Look into midgard-root.php to get an idea. BR, David > Could someone post an example of form authentication? > > Thanks! > > Mihai > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
