"Poe_Session", "auth" => "Poe_Default_Auth", "perm" => "Poe_Perm", "user" => "Poe_User"));
$auth->login_if($again); // relogin, if this was requested...
$user->register("u"); // register our user variable...
?>
">Relogin to this page to get permissions (Login as kris, test).
">Load the simple page again.
">Load the complex example again (Login as kris, test).
">Show your phpinfo() page.
">Logout and delete your authentication information.
have_perm("admin")) {
printf("You are %s
\n", $auth->auth["uname"]);
printf("Your permissions are: %s
\n", $auth->auth["perm"]);
printf("Hit logout to give up your permissions.
\n");
} else {
printf("You have no admin permission.
\n");
printf("Hit relogin to login as kris, test
\n");
}
?>
Per user data:
See how the user data changes when you change user identities from nobody to
kris and back.
Some interesting variables
\n", $sess->id);
printf("Your user id is %s
\n", $user->id);
printf("This should be the same as %s
\n", $auth->auth["uid"]);
printf("You have the permissions %s
\n", $auth->auth["perm"]);
?>