Location: PHPKode > projects > NetLink > netlink_os/logout.php
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (isset($_COOKIE[session_name()])) {
   setcookie(session_name(), '', time()-42000, '/');
}

// Finally, destroy the session.
session_destroy();
?>

<html>
<head>
<title>
Logging out of NetLink&copy;....</title>
<link media="screen" type="text/css" rel="stylesheet"  href="main.css" />
<meta http-equiv="refresh" content="1; URL=index.php">
</head>
<body>
<b>Logging out......</b>
<br/><br/>
<i>Thank you for using N<small>ET</small>L<small>INK</small>....
</body>
</html>
Return current item: NetLink