View file exit.php
<?php Error_Reporting(E_ALL & ~E_NOTICE); Error_Reporting (ERROR | WARNING); extract($HTTP_GET_VARS); extract($HTTP_POST_VARS); extract($HTTP_COOKIE_VARS); extract($HTTP_SERVER_VARS); extract($HTTP_SESSION_VARS); require ("config.php"); #Подключаем настройки сайта. (config.php) session_name("SESID"); session_start(); unset($_SESSION['login']); unset($_SESSION['pass']); session_destroy(); header ("Location: index.php"); ?>