Bewerken

Share via


SessionAuthenticationModule.WriteSessionTokenToCookie Method

Definition

Writes the specified SessionSecurityToken to a session cookie.

public:
 void WriteSessionTokenToCookie(System::IdentityModel::Tokens::SessionSecurityToken ^ sessionToken);
public void WriteSessionTokenToCookie (System.IdentityModel.Tokens.SessionSecurityToken sessionToken);
member this.WriteSessionTokenToCookie : System.IdentityModel.Tokens.SessionSecurityToken -> unit
Public Sub WriteSessionTokenToCookie (sessionToken As SessionSecurityToken)

Parameters

sessionToken
SessionSecurityToken

The session security token to write.

Exceptions

sessionToken is null.

There is not a valid session token handler configured. (There is no SessionSecurityTokenHandler configured in the SecurityTokenHandlers property.)

Remarks

Writes the cookie by using the cookie handler that is configured in the CookieHandler property.

Applies to