Advertisement
mrengy

secretpage.php

Aug 5th, 2011
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.     session_start(); // if session variable not set, redirect to login page
  3.     if (!isset($_SESSION['authenticated'])) {
  4.         header('Location: http://mike-eng.com/temp/php/sessions/login.php');
  5.         exit;
  6.     }
  7. ?>
  8. <!DOCTYPE HTML>
  9. <html>
  10. <head>
  11. <meta charset="utf-8">
  12. <title>Menu</title>
  13. </head>
  14. <body>
  15.     This is the secret page.
  16. </body>
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement