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.
How to Login Without Database | PHP Login Tutorial |
Type: | Php |
Category: | Web Tutorial |
Sub Category: | PHP Login Tutorial |
Uploaded by: | Admin |