This just happened recently, i have a well written registration form page, login form and sign-out button, i just noticed my sign-out button is not working and also my signup button as they were both working fine initially. I am using Xampp.
Here is my signout.php
.
<?php
session_start();
session_destroy();
header("Location: home.php");
?>
and here is my signout button code
<form> <form action="signout.php"> <button>SIGN OUT</button></form>
I have a long sign-in code so I cant paste that here, but I think the problem is related.