Advertisement
Guest User

auth.php

a guest
Dec 20th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2.     //Start session
  3.     session_start();
  4.    
  5.     //Check whether the session variable SESS_MEMBER_ID is present or not
  6.     if(!isset($_SESSION['SESS_USERNAME']) || (trim($_SESSION['SESS_USERNAME']) == '')) {
  7.         header("location: access-denied.php");
  8.         exit();
  9.     }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement