www/www-header.php - FIX: non-set _SESSION variables causing 'undefined index' in...
[phorkie.git] / www / secure.php
1 <?php
2 /** 
3  * Protect page
4  */
5 namespace phorkie;
6 require_once 'www-header.php';
7 $_SESSION['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
8 if (!isset($_SESSION['identity'])) {
9     header("Location: /login");
10 }
11 ?>