public function get($key, $default = null)
    {
        return isset($_SESSION) && isset($_SESSION[$key])
            ? $_SESSION[$key]
            : $default;
    }
public function get($key, $default = null)
    {
        return isset($_SESSION) && isset($_SESSION[$key])
            ? $_SESSION[$key]
            : $default;
    }
public function get ( $ key , $ default = null ) { return isset ( $ _SESSION ) && isset ( $ _SESSION [ $ key ] ) ? $ _SESSION [ $ key ] : $ default ; }
Get values from session.

@param string $key     in session variable.
@param mixed  $default default value to return when key is not set in session.

@return mixed
Get values from session .