func (c *Client) ExtendWebSession(user string, prevSessionID string) (*Session, error) {
	out, err := c.PostJSON(
		c.Endpoint("users", user, "web", "sessions"),
		createWebSessionReq{
			PrevSessionID: prevSessionID,
		},
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sess *Session
	if err := json.Unmarshal(out.Bytes(), &sess); err != nil {
		return nil, err
	}
	return sess, nil
}
// ExtendWebSession creates a new web session for a user based on another
// valid web session
ExtendWebSession creates a new web session for a user based on another
valid web session
// ExtendWebSession creates a new web session for a user based on another // valid web session
func (c *Client) ExtendWebSession(user string, prevSessionID string) (*Session, error) {
	out, err := c.PostJSON(
		c.Endpoint("users", user, "web", "sessions"),
		createWebSessionReq{
			PrevSessionID: prevSessionID,
		},
	)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sess *Session
	if err := json.Unmarshal(out.Bytes(), &sess); err != nil {
		return nil, err
	}
	return sess, nil
}
func ( c * Client ) ExtendWebSession ( user string , prevSessionID string ) ( * Session , error ) { out , err := c . PostJSON ( c . Endpoint ( " " , user , " " , " " ) , createWebSessionReq { PrevSessionID : prevSessionID , } , ) if err != nil { return nil , trace . Wrap ( err ) } var sess * Session if err := json . Unmarshal ( out . Bytes ( ) , & sess ) ; err != nil { return nil , err } return sess , nil }
ExtendWebSession creates a new web session for a user based on another
valid web session
ExtendWebSession creates a new web session for a user based on another valid web session