SessionAuthenticationModule.ReadSessionTokenFromCookie Method (Byte[])

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Reads a SessionSecurityToken from the specified session cookie.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public SessionSecurityToken ReadSessionTokenFromCookie(
	byte[] sessionCookie
)

Parameters

sessionCookie
Type: System.Byte[]

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

Return Value

Type: System.IdentityModel.Tokens.SessionSecurityToken

The session token that was read from the cookie.

Exception Condition
InvalidOperationException

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

.NET Framework
Available since 4.5
Return to top
Show: