func (c *Client) GetWebSessionInfo(user string, sid string) (*Session, error) {
	out, err := c.Get(
		c.Endpoint("users", user, "web", "sessions", sid), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sess *Session
	if err := json.Unmarshal(out.Bytes(), &sess); err != nil {
		return nil, trace.Wrap(err)
	}
	return sess, nil
}
// GetWebSessionInfo check if a web sesion is valid, returns session id in case if
// it is valid, or error otherwise.
GetWebSessionInfo check if a web sesion is valid, returns session id in case if
it is valid, or error otherwise.
// GetWebSessionInfo check if a web sesion is valid returns session id in case if // it is valid or error otherwise .
func (c *Client) GetWebSessionInfo(user string, sid string) (*Session, error) {
	out, err := c.Get(
		c.Endpoint("users", user, "web", "sessions", sid), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sess *Session
	if err := json.Unmarshal(out.Bytes(), &sess); err != nil {
		return nil, trace.Wrap(err)
	}
	return sess, nil
}
func ( c * Client ) GetWebSessionInfo ( user string , sid string ) ( * Session , error ) { out , err := c . Get ( c . Endpoint ( " " , user , " " , " " , sid ) , url . Values { } ) if err != nil { return nil , trace . Wrap ( err ) } var sess * Session if err := json . Unmarshal ( out . Bytes ( ) , & sess ) ; err != nil { return nil , trace . Wrap ( err ) } return sess , nil }
GetWebSessionInfo check if a web sesion is valid, returns session id in case if
it is valid, or error otherwise.
GetWebSessionInfo check if a web sesion is valid returns session id in case if it is valid or error otherwise .