core/api/modules/exit/index.php

12 lines
285 B
PHP
Raw Normal View History

2023-08-28 22:47:07 +05:00
<?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: /');
?>