12 lines
285 B
PHP
12 lines
285 B
PHP
|
<?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: /');
|
||
|
?>
|