SessionAuthenticationModule.ReadSessionTokenFromCookie Method

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
InvalidOperationException

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

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft