What I've got for my button is:
Code: Select all
<form action='logout.php' method='post'><input name='Logout' type='Submit' value='Logout' /></form>Code: Select all
<?php
session_destroy();
echo "You have logged out";
echo "<head><meta HTTP-EQUIV='REFRESH' content='10; url=index.html'></head>";
?>My session is started elsewhere, so what do I need to do in order to destroy my session and get my user to log out?