• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.