Файл: modules/user/exit.php
Строк: 26
<?php
/**
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) 2013, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
* @link http://perf-engine.net
* @package PerfEngine
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
if(User::logged())
{
setcookie('uid', '', (time()-3600), '/');
setcookie('password', '', (time()-3600), '/');
$_SESSION['uid'] = false;
$_SESSION['password'] = false;
session_destroy();
redirect('/');
} else { redirect('/'); }
?>