View file exit.php
<? error_reporting(0); include "setup.php"; if(is_admin($config['login'], $config['pass'])){ $_SESSION['adminlogin'] = ''; $_SESSION['adminpass'] = ''; setcookie('adminlogin', ''); setcookie('adminpass', ''); setcookie(session_name(), ''); session_unset(); session_destroy(); echo "<html><meta http-equiv='Refresh' content='1; url=index.xhtml' /><body>Cookie удалены<br/><a href='index.xhtml'>Гостя</a><br/></body></html>"; exit; } header('location: index.xhtml'); ?>