hi, my two files are below
part of my functions.php file
if ($action == "logout") { // just incase user wants to logout
session_unregister("username");
session_unregister("password");
session_unset();
session_destroy();
echo("Thank you, You have been signed out");
exit;
}
part of my index.php file
[<a href="index.php?action=logout">Logout</a>]
I'm pretty sure this isn't how you perfom an action, but just wondering if someone can point me in the right direction.