func (s *IdentityService) GetWebSession(user, sid string) (*services.WebSession, error) {
	val, err := s.backend.GetVal(
		[]string{"web", "users", user, "sessions"},
		sid,
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	var session services.WebSession
	err = json.Unmarshal(val, &session)
	if err != nil {
		return nil, trace.Wrap(err)
	}

	return &session, nil
}
// GetWebSession returns a web session state for a given user and session id
GetWebSession returns a web session state for a given user and session id
// GetWebSession returns a web session state for a given user and session id
func (s *IdentityService) GetWebSession(user, sid string) (*services.WebSession, error) {
	val, err := s.backend.GetVal(
		[]string{"web", "users", user, "sessions"},
		sid,
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var session services.WebSession
	err = json.Unmarshal(val, &session)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return &session, nil
}
func ( s * IdentityService ) GetWebSession ( user , sid string ) ( * services . WebSession , error ) { val , err := s . backend . GetVal ( [ ] string { " " , " " , user , " " } , sid , ) if err != nil { return nil , trace . Wrap ( err ) } var session services . WebSession err = json . Unmarshal ( val , & session ) if err != nil { return nil , trace . Wrap ( err ) } return & session , nil }
GetWebSession returns a web session state for a given user and session id
GetWebSession returns a web session state for a given user and session id