Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Learn How To Do Logout using PHP Session

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 496
    Comment on it

    /* 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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: