Share via


<sessionSecurityTokenCache>

Registers a cache for session tokens with a service or a security token handler collection.

<configuration>
  <system.identityModel>
    <identityConfiguration>
      <caches>
        <sessionSecurityTokenCache>

Syntax

<system.identityModel>  
  <identityConfiguration>  
    <caches>  
      <sessionSecurityTokenCache type=xs:string>  
      </sessionSecurityTokenCache>  
    </caches>  
  </identityConfiguration>  
</system.identityModel>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
type A type that derives from the SessionSecurityTokenCache class.

Child Elements

None

Parent Elements

Element Description
<caches> Registers the caches used by a service or a security token handler collection.

Example

The following XML shows the configuration of a custom cache for holding session security tokens (SessionSecurityToken). The configuration is taken from the ClaimsAwareWebFarm sample. For more information about this sample, see WIF Code Sample Index.

<caches>  
  <sessionSecurityTokenCache type="CacheLibrary.SharedSessionSecurityTokenCache, CacheLibrary">  
    <!--cacheServiceAddress points to the centralized session security token cache service running in the web farm.-->  
    <cacheServiceAddress url="http://localhost:4161/SessionSecurityTokenCacheService.svc" />  
  </sessionSecurityTokenCache>  
</caches>  

See also