Example:
PHP
<?php session_start(); /* Starts the session */
if(!isset($_SESSION['UserData']['Username'])){
header("location:login.php");
exit;
}
?>
Congratulation! You have logged into password protected page. <a href="logout.php">Click here</a> to Logout.
Create HTML Login form | PHP Login Tutorial |
Create PHP File for Login Check User and Password | PHP Login Tutorial |
Now, Create Login redirect Page | PHP Login Tutorial |
Finally, Create a pgae to logout | PHP Login Tutorial |
How to Login Without Database | PHP Login Tutorial |
Type: | Php |
Category: | Web Tutorial |
Sub Category: | PHP Login Tutorial |
Uploaded by: | Admin |