SessionSecurityTokenHandler.ValidateSession(SessionSecurityToken) SessionSecurityTokenHandler.ValidateSession(SessionSecurityToken) SessionSecurityTokenHandler.ValidateSession(SessionSecurityToken) SessionSecurityTokenHandler.ValidateSession(SessionSecurityToken) Method

Definition

Determines whether the session associated with the specified token is still valid. Validity is determined by checking the ValidFrom and ValidTo properties of the specified token. An exception is thrown if the session is no longer valid.

protected:
 virtual void ValidateSession(System::IdentityModel::Tokens::SessionSecurityToken ^ securityToken);
protected virtual void ValidateSession (System.IdentityModel.Tokens.SessionSecurityToken securityToken);
abstract member ValidateSession : System.IdentityModel.Tokens.SessionSecurityToken -> unit
override this.ValidateSession : System.IdentityModel.Tokens.SessionSecurityToken -> unit
Protected Overridable Sub ValidateSession (securityToken As SessionSecurityToken)

Parameters

Exceptions

Remarks

The token is not valid if its ValidFrom property is set to a value that occurs later than UtcNow, or if its ValidTo property is set to a value that occurs earlier than UtcNow.

Called from the ValidateToken methods to validate the session.

Applies to