function get($name, $default=null)
    {
        if (isset($_SESSION) && array_key_exists($name, $_SESSION)) {
            return $_SESSION[$name];
        } else {
            return $default;
        }
    }
function get($name, $default=null)
    {
        if (isset($_SESSION) && array_key_exists($name, $_SESSION)) {
            return $_SESSION[$name];
        } else {
            return $default;
        }
    }
function get ( $ name , $ default = null ) { if ( isset ( $ _SESSION ) && array_key_exists ( $ name , $ _SESSION ) ) { return $ _SESSION [ $ name ] ; } else { return $ default ; } }
Get a key's value from the session.

@param string $name The name of the key to retrieve.
@param string $default The optional value to return if the key
is not found in the session.
@return mixed $result The key's value in the session or
$default if it isn't found.
Get a key s value from the session .