Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Initialize the session
- session_start();
- // Check if the user is logged in, if not then redirect him to login page
- if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
- header("location: login.php");
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement