The <SessionCache>
element configures the plugin used for the caching of user sessions. The cache manages access to attributes, session metadata, and SAML assertions, and enforces session timeout policy.
On Version 2.4 and above, this element can be omitted, resulting in the "StorageService" cache being used, on top of the default StorageService, with other options defaulted.
type
(string)
cacheAllowance
(time in seconds) (defaults to 0) (Version 2.4 and Above)
cacheTimeout
(deprecated) (time in seconds) (defaults to 0 on 2.4+, 28800 on earlier versions)
cacheAllowance
setting. Period of inactivity after which unused sessions can be deleted from the cache. Should be set to a value at least as large as the largest timeout defined in the <Sessions>
element of an Application, so that sessions don't disappear prematurely.maintainReverseIndex
(boolean) (defaults to true) (Version 2.5 and Above)
excludeReverseIndex
(list of strings) (Version 2.5 and Above)
Identified by type="StorageService"
, stores data using a previously-defined <StorageService>
plugin. Includes a hybrid design that detects in-process vs. out-of-process use and buffers frequently-used sessions inside the web server to minimize repeated transfers of data across the process boundary. Memory use can be tuned.
<SessionCache type="StorageService" StorageService="db" cacheAllowance="3600" inprocTimeout="900" cleanupInterval="900"/> |
StorageService
(XML IDREF)
id
attribute of a previously defined <StorageService>
element. If omitted, an arbitrary/default instance will be selected.cleanupInterval
(time in seconds) (defaults to 900)
inprocTimeout
(time in seconds) (defaults to 900)
cacheAssertions
(boolean) (defaults to true) (Version 2.4 and Above)
inboundHeader
(string) (Version 2.4 and Above)
Cookie
header.outboundHeader
(string) (Version 2.4 and Above)
Set-Cookie
header.