Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #redirect #logged
ADD COMMENT
Topic
Name
6+4 =