So, Logging in works perfectly fine, but, I put in a logout link (for obvious reasons to logout), and now when I click the logout link it doesn't do anything but stay on main.php
Here's my code
<body> <a href="logout.php">Logout</a> </body>
And now the logout.php script
<?php
session_start();
unset($_SESSION['userid']);
unset($_SESSION['username']);
header("location: login.php");
?>
Thanks been trying for an hour, so all help appreciated

New Topic/Question
Reply



MultiQuote






|