Answers for "php redirect if not logged in"

PHP
0

php redirect if not logged in

if(!isset($_SESSION['login'])){ //if login in session is not set
    header("Location: http://www.example.com/login.php");
}
Posted by: Guest on December-28-2020

Code answers related to "php redirect if not logged in"

Browse Popular Code Answers by Language