Simple Logout Session link
Posted: Fri Jul 05, 2002 11:45 am
What's the easiest and best way to create a simple link that ends the session and logs the user out?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
session_destroy();
header("Location: index.php");
?>Code: Select all
<?php
session_start();
session_destroy();
header("Location: index.php");
?>