Welcome Guest, Not a member yet? Register   Sign In
Needed: Summary of Security and Sessions versus standard PHP
#6

[eluser]Dr.Dan[/eluser]
[quote author="Rick Jolly" date="1183716417"]Php native sessions based on Lick's example.

You could make "MySecretPage" a parent to all secure controllers. That way for every secure controller, you'd just extend "MySecretPage" and no additional authentication checks would be necessary:
Code:
include(APPPATH . '/controllers/my_secret_page.php');

/* This controller is secure because the authentication
   check is done in MySecretPage's constructor */
class ChildSecretPage extends MySecretPage
{
   function ChildSecretPage ()
   {
      parent::MySecretPage();
   }
  
   ...
}
[/quote]

That's Nice One!! :coolsmile:


Messages In This Thread
Needed: Summary of Security and Sessions versus standard PHP - by El Forum - 07-06-2007, 12:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB