private void BISSOGO() { Multek.com.multek.bi.SSOAuthen SSO = new Multek.com.multek.bi.SSOAuthen(); if (Request.QueryString["token"] == null) { Response.Redirect(SSO.getSSOLoginPage(Server.UrlEncode(Request.Url.ToString()))); } else { if (Request.QueryString["pair"] != null && Request.QueryString["token"] != null) { string a = SSO.testAuthentication(Request.QueryString["token"].ToString(), Request.QueryString["pair"].ToString()); if (a == "failed" || a == "expired" || a == "") { Label5.Text = "failed to access this application!"; } else { string[] Users; Users = a.Trim().Split('\\'); if (Users.Length == 2) { securityChecking(Users[0], Users[1]); } else Label5.Text = "unknow"; } } } SSO.Dispose(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["usr"] != null) { Session["usr"] = null; } } Session.Abandon(); FormsAuthentication.SignOut(); Multek.com.multek.bi.SSOAuthen sso = new Multek.com.multek.bi.SSOAuthen(); string lo = sso.getSSOLogoutPage(); sso.Dispose(); Response.Redirect(lo); }