Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start(); // if session variable not set, redirect to login page
- if (!isset($_SESSION['authenticated'])) {
- header('Location: http://mike-eng.com/temp/php/sessions/login.php');
- exit;
- }
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Menu</title>
- </head>
- <body>
- This is the secret page.
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement