How to prevent user from back button in browser after logout and login as well
<?php session_start(); unset($_SESSION['name']); session_destroy(); header("Location: login.php"); exit; ?>
window.onbeforeunload = function() { return 'You cannot leave this page'; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)