Cml\Http\Session::get PHP Method

get() public static method

获取session值
public static get ( string $key ) : string
$key string 要获取的session的key
return string
    public static function get($key)
    {
        empty(self::$prefix) && (self::$prefix = Config::get('session_prefix'));
        return isset($_SESSION[self::$prefix . $key]) ? $_SESSION[self::$prefix . $key] : null;
    }