SessionAuthenticationModule.IsReferenceMode 속성

정의

세션 정보(클레임 값 등)가 세션 쿠키에 저장되어야 하는지 여부나 세션 콘텐츠가 서버쪽에 저장되고 쿠키를 사용하여 참조만 저장해야 하는지 여부를 지정하는 값을 가져오거나 설정합니다.

public:
 property bool IsReferenceMode { bool get(); void set(bool value); };
public bool IsReferenceMode { get; set; }
member this.IsReferenceMode : bool with get, set
Public Property IsReferenceMode As Boolean

속성 값

발급된 쿠키가 참조 모드에 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 false이고, 발급된 쿠키가 참조 모드에 없음을 나타냅니다.

설명

참조 모드에는 SessionSecurityToken 서버 쪽 캐시에 저장 됩니다 (개체에서 파생 되는 SessionSecurityTokenCache). 발급 된 쿠키 캐시에서 토큰을 검색 하는 데 사용 되는 컨텍스트 식별자를만 포함 되어 있습니다.

중요

제공 하는 것이 좋습니다 참조 모드로 작동 하는 WSFederationAuthenticationModule.SessionSecurityTokenCreated global.asax.cs 파일 설정에서 이벤트를 SessionSecurityToken.IsReferenceMode 전달 된 토큰에 대 한 속성을 SessionSecurityTokenCreatedEventArgs.SessionToken 속성입니다. 이렇게 하면 세션 토큰이 모든 요청에 대해 참조 모드로 작동 하 고 단순히 설정 보다 우선 하는 SessionAuthenticationModule.IsReferenceMode 세션 인증 모듈의 속성입니다.

적용 대상