Location: PHPKode > projects > Tech Tickets > logoff.php
<?php
//logoff script
//this will stop session and set uid variable to nothing
  session_start();
  unset($HTTP_SESSION_VARS['uid']); //remove cookie
  unset($HTTP_SESSION_VARS['role']); //remove cookie
  unset($HTTP_SESSION_VARS['firstname']); //remove cookie
  unset($HTTP_SESSION_VARS['pid']);
  session_destroy();    //stop session
  ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>Logoff</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<link href="include/style.css" type="text/css" rel="stylesheet" />
</head>

<body topmargin="0">
<?php include("header.php"); ?>
<table width="100%" bgcolor="#efefef">
<tr><td align="right">&nbsp;</td></tr>
</table>

      <h1 align="center"><font face="Verdana, Arial, Helvetica, sans-serif">Successfully 
        logged off</font></h1>
      <p align="center">&nbsp;</p>
      <p align="center">&nbsp;</p>
		<div align="center"><a href="index.php">Back to Login</a></div>

<p align="center">&nbsp;</p>
<?php include("footer.php"); ?>
</body>
</html>
Return current item: Tech Tickets