Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

checks whether the session is set or not, if not it will redirect the user to login page.

session_start();
if(!isset($_SESSION['username'])){
   header("Location:Login.php");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checks #session #set #redirect #user #login
ADD COMMENT
Topic
Name
9+2 =