SessionAuthenticationModule.ReadSessionTokenFromCookie(Byte[]) Method

Definition

Reads a SessionSecurityToken from the specified session cookie.

C#
public System.IdentityModel.Tokens.SessionSecurityToken ReadSessionTokenFromCookie(byte[] sessionCookie);

Parameters

sessionCookie
Byte[]

The cookie, in raw form, that contains the session token.

Returns

The session token that was read from the cookie.

Exceptions

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

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1