<?php include 'core/bd.php'; if (!$user_id) header('Location:/load.php'); $mysqli->query("UPDATE `user` SET `online` = '0', `time_on` = '".(time() - 600)."' WHERE `id` = '".$user_id."' LIMIT 1"); session_start(); setcookie("mail", $mail, time() - (86400 * 30), '/'); setcookie("pass", $pass2, time() - (86400 * 30), '/'); header('Location:/load.php'); ?>