- How to?
- Defining a persistent session
- Use conditions
Dynamic site: Persistent session
From version 26
, this feature is kept for backward compatibility.
Browsers do not always support Server-sent events (SSE).
This feature can still be used if you master the browsers used, in a secure intranet for example, and if it suits the needs of the site.In the case of a public site, timer browsers should be used.
For a dynamic WEBDEV site, when starting the site (site called from a browser), a session representing the site is loaded in memory on the server.
This session has a limited lifetime by default. The lifetime of the session corresponds to the "Disconnect the idle users since..." parameter specified in the administrator of the WEBDEV application server ("Configuration" tab). This parameter corresponds to the timeout of the session lifetime.
In some specific cases, you may have to keep a dynamic session active on the server.
Defining a persistent session
To define a persistent session:
- Open the project description: on the "Project" tab, in the "Project" group, click "Description".
- In the "Advanced" tab, check "(HTML5 only)".
If this option is enabled, the session will not be closed on the server after the timeout specified in the WEBDEV administrator.
If the user closes his browser (and therefore the site), the session will be automatically cut on the server.
This option is available for the dynamic WEBDEV sites developed in HTML5 and operating on the following types of browsers:
- Google Chrome: All versions
- Mozilla Firefox: From Firefox 6.0
- Opera: From Opera 11
- Safari: From Safari 5.0
- Internet Explorer: Not supported (including IE 11)
- Edge: Not supported