Windows Identity Foundation: How to delete STS token cookie on server side -
i'm trying delete wif sts token cookie on server side, not delete. works on client browser side not on server. have been searching web last few days have not found solution.
some of things found , tried no luck are: federatedauthentication.sessionauthenticationmodule.signout(); -federatedauthentication.sessionauthenticationmodule.deletesessiontokencookie(); federatedauthentication.sessionauthenticationmodule.cookiehandler.delete();
var test = httpcontext.current.applicationinstance.modules.get("wsfederationauthenticationmodule") microsoft.identitymodel.web.wsfederationauthenticationmodule; test.signout(true); //throws null error
the above lines of code called in sts web handling logout. if has suggestion appreciate it. thanks
looks using wif 1.0 (3.5).
use wsfederationauthenticationmodule.federatedsignout method.
this sends wsignout message sts, sts deletes cookies, sends wsignoutcleanup rp, rp deletes cookies.
you doing federated sign on use federated sign out.
Comments
Post a Comment