Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Different type of Session function in php

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 254
    Comment on it

    session_start();
    It Start new session or resume existing session or the current one based on the session identifier passed via any request like $_get and $_post. When a session start php will call the open and read the session handlers.User can used name of any session from the function session_name(). After creating a session user must unset the session by using void session_unset(void) function, it will free all the session variables that is currently registered

    session_start();
    $_SESSION['name']='NULL'
    $_SESSION['password']='NULL'

    session_destroy();
    It is used for deleting the whole session.

    session_unset();
    It will deletes only the variables from session but session still exists. It will just truncate the variable.

 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: