keepSessionAlive - Keep Session Alive
Sends a request at regular intervals to the server session associated with the current page.
Category
Extension LibrarySyntax
<xe:keepSessionAlive attributes>content</xe:keepSessionAlive>
Property | Description |
---|---|
id | Defaults to keepSessionAlive1 , keepSessionAlive2 ,
and so on. |
delay | Specifies in seconds the interval for sending requests to the server. The default (0 or a negative number) is the current session timeout value (specified on the XPages tab for Application Properties) minus 30 seconds. |
Category | Properties |
---|---|
basics | binding, delay, id, loaded, rendered, rendererType |
styling | disableTheme, themeId |
Usage
This control ensures that the server session for a page remains active even if the client page is inactive.Typically you place this control at the top of a page. If you use a custom control with an application layout, put this control at the top of the custom control.
Examples
This page maintains its server session until the page closes. A request is sent every 10 minutes.<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:keepSessionAlive id="keepSessionAlive1" delay="600"></xe:keepSessionAlive>
...
</xp:view>