How to stop user coming back to login page using back button. In the video we explained more but anyway below are the codes to execute the task in php.
<?php
session_start();
unset($_SESSION["id"]);
unset($_SESSION["username"]);
header("Location:login.php");
?>

Leave a Reply
You must be logged in to post a comment.