DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+2 =
Submit