i am implementing a log-in system, i am sure a lot of you know what it is, i use sessions to store the user's ID, and check it if he access a page that needs the user to be logged in.
But my problem is when the user clicks the log-out anchor, nothing happens i still can access the other pages as long as the current page is open.
here is the code is use:
<?
unset($_SESSION["ID"]);
session_destroy();
header('location: ../Home/index.php');
?>
bu yüzden herkes yardımcı olabilir. şimdiden teşekkürler.