관리-도구
편집 파일: secure.php
<?php session_start(); // if session is not set redirect the user if(empty($_SESSION['u_name'])) header("Location:index.php"); //if logout then destroy the session and redirect the user if(isset($_GET['logout'])) { session_destroy(); header("Location:index.php"); } ?>