[phplib] Weird behavior with $perm->check() From: Guillaume Desclaux (gdesclaux <email protected>)
Date: 02/26/01

Hi,

I've a weird behavior when I use the $perm->check() function just after
the page_open() function on the top of my php script.

In fact It seems that I've the same problem that Dave Nuttal describes
10/12/1999 in
http://www.geocrawler.com/mail/msg.php3?msg_id=2752700&list=195

or Scott Grab in 06/13/2000
http://www.geocrawler.com/mail/msg.php3?msg_id=3881364&list=195

but I cannot see any answer to this particular problem...

I do :

 <?PHP page_open(array("sess" => "My_Session",
    "auth" => "My_Auth",
   "perm" => "My_Perm",
   "user" => "My_User"));

 $perm->check("specialperm");
?>
<HTML>
<?PHP
 page_close();
?>

If $perm->check() return true I need to login just one time but if the
$perm->check() function return failed I need to login twice before to be
redirected to the perminvalid.ihtml page... I see an interaction between
$perm->check and page_close() function because if I call page_close()
before $perm->check() I don't have to login twice... but it's not a
proper solution indeed...
Any idea ?

Thanks for your answer

Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>