<ttlInSeconds> Element
Specifes, in seconds, how long issued SecurityContextToken security tokens are valid.
<microsoft.web.services2> Element
<tokenIssuer> Element (WSE for Microsoft .NET) (2)
<ttlInSeconds>Time-to-live in seconds.</ttlInSeconds
Attributes and Elements
Attributes
None.
Child Elements
None.
Parent Elements
Element | Description |
---|---|
Specifies the settings for a security token service. |
Text Value
A text value is required. The text value specifes, in seconds, how long issued SecurityContextToken security tokens are valid. The default value is 14400 (4 hours).
Remarks
To override the default 4-hour duration, add a <ttlInSeconds> element to the configuration file for the security token service.
Before adding the <ttlInSeconds> element to a configuration file, you must add the microsoft.web.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).
Example
The following code example sets the duration that issued SecurityContextToken security tokens issued are valid to 1 hour (3600 seconds).
<configuration>
<microsoft.web.services2>
<tokenIssuer>
<ttlInSeconds>3600</ttlInSeconds>
</tokenIssuer><
</microsoft.web.services2>
</configuration>
See Also
Reference
<tokenIssuer> Element (WSE for Microsoft .NET) (2)
SecurityContextToken