4D v16.3

On Web Close Process database method

Home

 
4D v16.3
On Web Close Process database method

On Web Close Process database method  


 

 

The On Web Close Process database method is called by the 4D Web server each time a Web session is about to be closed. A session can be closed in the following cases:

  • when the maximum number of simultaneous sessions is reached (100 by default, modifiable using the WEB SET OPTION command), and 4D needs to create new ones (4D automatically kills the process of the oldest inactive session),
  • when the maximum period of inactivity for the session process is reached (480 minutes by default, modifiable using the WEB SET OPTION command),
  • when the WEB CLOSE SESSION command is called.

When this database method is called, the context of the session (variables and selections generated by the user) is still valid. This means that you can save data related to the session in order to be able to use them again subsequently, more specifically using the On Web Connection Database Method.

Note: In the context of a 4D Mobile session (which can generate several processes), the On Web Close Process database method is called for each Web process that is closed, allowing you to save all types of data (variables, selection, etc.) generated by the 4D Mobile session process.

An example of the On Web Close Process database method is provided in the Web Sessions Management section.



See also 

Web Sessions Management

 
PROPERTIES 

Product: 4D
Theme: Web Server

 
HISTORY 

Renamed: 4D v15 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)