public Session(auth.Response authResponse) { session.Request request = new session.Request(authResponse.ssoToken); request.cookieContainer = authResponse.cookieContainer; //remove AMAuthCookie after auth CookieCollection cc = request.cookieContainer.GetCookies(request.getUrl()); foreach (Cookie co in cc) { if (co.Name.Equals("AMAuthCookie")) { co.Expired = true; } } token = Get(request); this.sessionId = token.sid; }
public Session(auth.Response authResponse) { token = (session.Response) new session.Request(authResponse).getResponse(); }