Auth_Yadis_PHPSession::get PHP Метод

get() публичный Метод

Get a key's value from the session.
public get ( string $name, string $default = null ) : string
$name string The name of the key to retrieve.
$default string The optional value to return if the key is not found in the session.
Результат string $result The key's value in the session or $default if it isn't found.
    function get($name, $default = null)
    {
        if (isset($_SESSION) && array_key_exists($name, $_SESSION)) {
            return $_SESSION[$name];
        } else {
            return $default;
        }
    }
Auth_Yadis_PHPSession