コード例 #1
0
    protected void btnLogout_Click(object sender, EventArgs e)
    {
        AccountSettings accountSettings = new AccountSettings();

        OneLogin.Saml.AuthRequest req = new AuthRequest(new AppSettings(), accountSettings);
        Response.Redirect(req.BindLogoutRequest(Session["username"].ToString(), Session["sessionId"].ToString()));
    }