<?php
ini_set('display_errors', 0 );
session_destroy();
$_SESSION['user_id']='';
$_SESSION['dostup']='';
$cookies = '';
$tri_mes = time() + 31536000;
setcookie('cookies', $cookies, $tri_mes, '/', $_SERVER['SERVER_NAME']);
header('Location: /');
?>