The timer-keep-alive Element"
From Documentation
Jimmyshiau (talk | contribs) |
Jumperchen (talk | contribs) |
||
Line 10: | Line 10: | ||
A session is considered as timeout (and then invalidated), if it doesn't receive any client request in the specified timeout interval (see the '''session-timeout''' element above). | A session is considered as timeout (and then invalidated), if it doesn't receive any client request in the specified timeout interval (see the '''session-timeout''' element above). | ||
− | By setting this option to true, the <tt>onTimer</tt> event, just like any other events, will reset the session timeout counter (and then keep the session alive until timeout). Notice that, if this option is | + | By setting this option to true, the <tt>onTimer</tt> event, just like any other events, will reset the session timeout counter (and then keep the session alive until timeout). Notice that, if this option is true and the timer is shorter than the session timeout, the session won't be expired. |
− | By default, this option is | + | By default, this option is false. It means the <tt>onTimer</tt> event is ignored when handling the session timeout. In other words, the session will expire if no other event is received before timeout. |
=Version History= | =Version History= |
Revision as of 03:29, 11 March 2011
Syntax:
<timer-keep-alive>true|false</timer-keep-alive>
[Default: false]
It specifies whether to keep the session alive, when receiving the onTimer event.
A session is considered as timeout (and then invalidated), if it doesn't receive any client request in the specified timeout interval (see the session-timeout element above).
By setting this option to true, the onTimer event, just like any other events, will reset the session timeout counter (and then keep the session alive until timeout). Notice that, if this option is true and the timer is shorter than the session timeout, the session won't be expired.
By default, this option is false. It means the onTimer event is ignored when handling the session timeout. In other words, the session will expire if no other event is received before timeout.
Version History
Version | Date | Content |
---|---|---|