/* A PHP session variable is used to store information about, or change settings for a user session. Session variables hold information about one single user, and are available to all pages in one application.*/
Two things are to be kept in mind ::-->
1.Session Starts.
2.Session Destroy.
session_start(); //Session Start
$_SESSION['username'] = ' '; // username = NULL.
$_SESSION['Password'] = ' '; // Password = NULL.
$_SESSION['Email-Id'] = ' '; // Email-ID = NULL.
session_destroy(); //Session Destroy
header("Location: home.php"); //Redirect To Home Page
0 Comment(s)