Date: 01/27/00
- Next message: Kristian Köhntopp: "Re: [PHPLIB] logout boggle"
- Previous message: Manuel Hossfeld: "Re: [PHPLIB] logout boggle"
- In reply to: Manuel Hossfeld: "Re: [PHPLIB] logout boggle"
- Next in thread: Chris Johnson: "RE: [PHPLIB] logout boggle"
- Reply: Chris Johnson: "RE: [PHPLIB] logout boggle"
- Reply: tom morgan: "Re: [PHPLIB] logout boggle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
> unauth() is a member function of the $auth object, which
> you forgot to specify.
> So it should read
>
> $auth->unauth($nobody=false);
>
> (instead of just "unauth($nobody=false);" )
Ah, i figured that out.. but that leaves me with the scenario below:
<?php
page_open(
array("sess"=>"CS_Session",
"auth"=>"Example_Auth",
"perm"=>"Example_Perm"));
$perm->check("admin");
echo "inloggad";
// $auth= unauth($nobody=false);
// $auth = logout();
page_close();
?>
I get the user/pass dialog, and if i enter an user that doesnt have admin
i get the
Permission denied
Your session 344e8c2385b4106154faaaf5c07f0abd has been authenticated with
a user id of 6943ed4b9358bd176277c5212e3d43bb and a user name of j2.
To access this page, the following permissions are required: admin.
I won't let you access this page, because you have these permissions: .
However, from this point on, reloading the page gives me the above dialog,
i am never asked to re-auth. (running IE5, set to "check page on every
load")
1. How do i return to the login screen if the above happens?
2. How do i log a user out? Neither $auth= unauth($nobody=false); or
$auth = logout(); Seems to work.
(yes, i know they are commented out in the above code, im trying to fix
the auth dialog thing first)
-
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: Kristian Köhntopp: "Re: [PHPLIB] logout boggle"
- Previous message: Manuel Hossfeld: "Re: [PHPLIB] logout boggle"
- In reply to: Manuel Hossfeld: "Re: [PHPLIB] logout boggle"
- Next in thread: Chris Johnson: "RE: [PHPLIB] logout boggle"
- Reply: Chris Johnson: "RE: [PHPLIB] logout boggle"
- Reply: tom morgan: "Re: [PHPLIB] logout boggle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

