HomePHP How do I prevent a user from trying to sign in after being logged in PHP? Vikram somai October 01, 2021 0 Comments Facebook Twitter You just need to check validation on your index pageCode:-If(empty($_SESSION[“user”])){header(‘location:login.php’);}else{header(‘location:index.php’);} Tags PHP Facebook Twitter
Post a Comment
If you have any doubts, Please let me know
Thanks!