code: func (s *AuthenticationService) AcquireSessionCookie(username, password string) (bool, error) {
  	apiEndpoint := "rest/auth/1/session"
  	body := struct {
  		Username string `json:"username"`
  		Password string `json:"password"`
  	}{
  		username,
  		password,
  	}
  
  	req, err := s.client.NewRequest("POST", apiEndpoint, body)
  	if err != nil {
  		return false, err
  	}
  
  	session := new(Session)
  	resp, err := s.client.Do(req, session)
  
  	if resp != nil {
  		session.Cookies = resp.Cookies()
  	}
  
  	if err != nil {
  		return false, fmt.Errorf("Auth at JIRA instance failed (HTTP(S) request). %s", err)
  	}
  	if resp != nil && resp.StatusCode != 200 {
  		return false, fmt.Errorf("Auth at JIRA instance failed (HTTP(S) request). Status code: %d", resp.StatusCode)
  	}
  
  	s.client.session = session
  	s.authType = authTypeSession
  
  	return true, nil
  }
docs: // AcquireSessionCookie creates a new session for a user in JIRA.
  // Once a session has been successfully created it can be used to access any of JIRA's remote APIs and also the web UI by passing the appropriate HTTP Cookie header.
  // The header will by automatically applied to every API request.
  // Note that it is generally preferrable to use HTTP BASIC authentication with the REST API.
  // However, this resource may be used to mimic the behaviour of JIRA's log-in page (e.g. to display log-in errors to a user).
  //
  // JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session
  //
  // Deprecated: Use CookieAuthTransport instead