WSFederationAuthenticationModule.SetPrincipalAndWriteSessionToken Method (SessionSecurityToken, Boolean)
Sets the thread principal and optionally writes the session cookie.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
public void SetPrincipalAndWriteSessionToken( SessionSecurityToken sessionToken, bool isSession )
The session security token that was created from the WS-Federation sign-in response message from the STS.
true to write a cookie that represents the session included with the response; otherwise, false.
Called from the request processing pipeline implemented in the OnAuthenticateRequest event-handler delegate. This method does the following:
Invokes the OnSessionSecurityTokenCreated method to raise the SessionSecurityTokenCreated event. You can use this event to modify the session token before it is used to set the thread principal and written to the session cookie and to specify whether the session cookie should be written.
Available since 4.5