Location: PHPKode > projects > Internet Task Management System > itms_mysql_build_0111/logout.php
<?php

/*
 * ITMS ValleyData source file version 1.0 May 11, 2001
 *
 * Called to log a user out of ITMS
 *
 *
 * Internet Task Management System: An online system used for recording information about and assigning tasks and processes.
 * Copyright (C) 2001  ValleyData Programming Group
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * See file named "gpl.txt" included with source code or
 * visit http://www.gnu.org/copyleft/gpl.txt on the internet.
 */
 
include("config.php");

$title = "logout title";

unset($user); //delete user variable
unset($pass); //delete password variable

($SECURE_COOKIES == "true")? $SSL=1: $SSL=0;
setcookie("user", "", time()-360000, "", "", $SSL); 
setcookie("pass", "",  time()-360000, "", "", $SSL);
setcookie("isAdmin", "",  time()-360000, "", "", $SSL);
setcookie("uid", "",  time()-360000, "", "", $SSL);
setcookie("hash", "",  time()-360000, "", "", $SSL);

//setcookie("user"); //delete user cookie
//setcookie("pass"); //delete password cookie
//setcookie("isAdmin");
//setcookie("uid");
//setcookie("hash");

header("Location: index.php"); //send the user to the home page

?>

This is the logout page.

</td></tr>
</table>

<?php include("footer.php"); ?>
Return current item: Internet Task Management System