View file exit.php

File size: 518B
<?php
include_once "config.php";
include_once "inc/inc.php";
$query = 'DELETE FROM ' . $pref . 'online_user WHERE login_user="' . $_SESSION['login'] . '"';
mysql_query($query); 
// SetCookie("login", '', time() + 3600 * 24 * 365);
SetCookie("password", '', time() + 3600 * 24 * 365);
$_SESSION['login'] = '';
$_SESSION['pass'] = '';
$login = '';
$pass = ''; 
// $query='DELETE FROM '.$pref.'online_user WHERE login_user="'.$time_del.'"';
// mysql_query($query);
header("Location: index.php");
exit;

?>