Location: PHPKode > scripts > Simple Accounting System > SimpleAccounts/logout.php
<?php
session_start();
	$past = time() - 100;
	//this makes the time in the past to destroy the cookie
	setcookie('username', gone, $past);
	setcookie('userkey', gone, $past);
	setcookie('cname', gone, $past);
	header("Location: login.php");
?>
Return current item: Simple Accounting System