Exemple #1
0
        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;
        }
Exemple #2
0
 public session.Response Get(session.Request request)
 {
     return((session.Response)request.getResponse());
 }