Date: 04/17/00
- Next message: Howard Ha: "RE: [PHPLIB] Caching and the browser back button"
- Previous message: Boris Schleicher: "[PHPLIB] Authentication question"
- In reply to: Boris Schleicher: "[PHPLIB] Authentication question"
- Next in thread: Michael Chaney: "Re: [PHPLIB] Authentication question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You might want to consider instead setting up user permissions, and then
doign a check like
$perm->have_perm("user");
where user can be replaced by any permission level you design.
OR
do the following
if ($auth->auth["username"] != "nobody") {
}
I can't remember if username is where we store "nobody" (assuming you allow
default authentication), or if it is the uid that stores it. Basically when
default auth is allowed, the username (or id) becomes "nobody", which is a
sure indication that the user is not authenticated :).
Howard
-----Original Message-----
From: phplib-owner <email protected> [mailto:phplib-owner <email protected>]On
Behalf Of Boris Schleicher
Sent: Monday, April 17, 2000 8:59 AM
To: phplib <email protected>
Subject: [PHPLIB] Authentication question
Hi,
I have the following problem.
I'd like to use the function is_authenticated() to see if a user is
already logged in. I use the following code fragement:
page_open(array("sess" => "Example_Session" , "auth" => "Example_Auth"));
$uid = $auth->is_authenticated();
When the user is already logged in I get the user id and this is ok.
Now if the user is not logged in, I get the login screen, but I donīt want
this to happen. I just want the is_authenticated function to return a false,
like it is said in the manual.
Maybe somebody how to make this work.
Thanks
Boris
-----Original Message-----
From: phplib-owner <email protected> [mailto:phplib-owner <email protected>]On
Behalf Of Boris Schleicher
Sent: Monday, April 17, 2000 8:59 AM
To: phplib <email protected>
Subject: [PHPLIB] Authentication question
Hi,
I have the following problem.
I'd like to use the function is_authenticated() to see if a user is
already logged in. I use the following code fragement:
page_open(array("sess" => "Example_Session" , "auth" => "Example_Auth"));
$uid = $auth->is_authenticated();
When the user is already logged in I get the user id and this is ok.
Now if the user is not logged in, I get the login screen, but I donīt want
this to happen. I just want the is_authenticated function to return a false,
like it is said in the manual.
Maybe somebody how to make this work.
Thanks
Boris
-
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.
- Next message: Howard Ha: "RE: [PHPLIB] Caching and the browser back button"
- Previous message: Boris Schleicher: "[PHPLIB] Authentication question"
- In reply to: Boris Schleicher: "[PHPLIB] Authentication question"
- Next in thread: Michael Chaney: "Re: [PHPLIB] Authentication question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

