View file pages/exit.php
<?php require"../system/config.php"; require"../system/func.php"; require"../system/head.php"; require"../system/error.php"; if(empty($_COOKIE['mylogin']) or empty($_COOKIE['mypass'])){echo'Вы не авторизованы';}else{ $_COOKIE['mylogin']=''; $_COOKIE['mypass']=''; session_destroy(); header("Location: ../index.php");} ?>