RE: [Phplib-users] Help need for AUTH - ho to make unprotected pages
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@if...> - 2002-08-08 13:26:21
|
> I have in my autoprepend.php this string: > page_open(array("sess" => "TiSid", "auth" => "Crypt_Auth", > "perm" => "Perm", "user" => "User")); > > Of corse you prompted to login and password in any page. But > how can i unprotect the pages for registration and > changepassword without putting page_open() in any single page > only for esclude two pagese from authtentication scheme? I would never make the change password page unprotected, but you can make your own decision on that. Here's what I do: switch($HTTP_SERVER_VARS["SCRIPT_NAME"]) { case "/forgot_password.php": case "/register.php": page_open(array("sess" => "mySession")); break; default: page_open(array("sess" => "mySession", "auth" => "myChallenge_Crypt_Auth", "perm" => "myPerm", "user" => "myUser")); } Layne Weathers Ifworld Inc. |