Re: [phplib] login page help SIMPLE! From: giancarlo pinerolo (giancarlo <email protected>)
Date: 07/13/01

I dunno wht I've made all this mess around
it's far more simple than I wrote

index.page:
<?
  page_open(array("sess" => "Example_Session",
  "auth" => "Example_Default_Auth", // facultative
  "perm" => "Example_Perm", "user" => "Example_User"));
?>
<FORM action="welcome.php" method=post>
Login
<INPUT name=username size=10 value="">
Password
<INPUT name=password type=password size=10 value="">
<INPUT type=submit value="login"><BR>
</FORM>
<?
page_close();
?>

welcome page

<?
  page_open(array("sess" => "Example_Session",
  "auth" => "Example_Default_Auth", // you need this
  "perm" => "Example_Perm", "user" => "Example_User"));

if (!$auth->auth["uid"]=$auth->auth_validatelogin())
        {
        $auth->login_if("doit");
        }
?>
WELCOME USER
<?
page_close();
?>

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>