HOW TO prevent unauthorized access to secure pages

Talk and info about common issues and learn how to do almost anything with ApPHP AdminPanel

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6010
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO prevent unauthorized access to secure pages

Postby administrator » Mar 13th, '11, 10:41

If you want to create new page in AdminPanel and secure access to this page, you have to place following code at the top of this page:

Code: Select all

// Initialize the session.
session_start();
   
// change "../" according to your file placement
require_once("../inc/classes/session.class.php");   
require_once("../inc/checkAdminPagePermissions.php");

Return to “ApPHP AdminPanel {HOW TO}”