2011-09-16 15 views
1

ログアウト後にWindows Identity FrameworkでSSOを実装しましたwsignoutcleanup1.0要求をすべてのRPに送信していますが、セッションをクリアしたいが、セッション状態の例外を取得できません、wsignoutcleanup1.0現在のユーザーのセッションをクリアしていません

いずれかがGlobal.asaxの

protected void WSFederationAuthenticationModule_SigningOut(object sender,  Microsoft.IdentityModel.Web.SigningOutEventArgs e) 
{ 
    Microsoft.IdentityModel.Web.FederatedAuthentication.SessionAuthenticationModule.CookieHandler.Delete(); 
    Microsoft.IdentityModel.Web.FederatedAuthentication.SessionAuthenticationModule.DeleteSessionTokenCookie(); 
    Microsoft.IdentityModel.Web.FederatedAuthentication.SessionAuthenticationModule.SignOut(); 
    FormsAuthentication.SignOut(); 
} 

答えて

0

に次のコードを使用して、

を手伝ってくれるが、問題と解決策の詳細な説明を提供しthis post on the MSDN forumsを見て、ください。基本的に、セッション状態はグローバルASAXでは使用できませんが、HTTPモジュールで使用できるようにすることができます。

関連する問題