<?php
if(isset($user)) {
@setcookie('uid', '');
@setcookie('password','');
$_SESSION['uid'] = '';
$_SESSION['password'] = '';
unset($_SESSION['lang']);
unset($_COOKIE['lang']);
unset($user);
header('Location: /');
} else { header('Location: /'); }
?>