This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
WEB LEGACY CLOSE SESSION
|
WEB LEGACY CLOSE SESSION ( sessionID ) | ||||||||
Parameter | Type | Description | ||||||
sessionID | Text |
![]() |
Session UUID | |||||
This command can only be used with legacy web sessions, available in databases converted from versions prior to 4D v18 R6. It is ignored when scalable web sessions mode is enabled (recommended in 4D v18 R6 and higher). For more information, please refer to the Web Sessions Management (Legacy) section.
The WEB LEGACY CLOSE SESSION command invalidates an existing session designated by the sessionID parameter. If the session does not exist, the command does nothing.
When this command is called from a Web process or any other process:
After this command is executed, if a Web client sends a request using an invalid cookie, a new session is opened and a new cookie is sent.
Note: In the context of a 4D Mobile session, the WEB LEGACY CLOSE SESSION command closes the 4D Mobile session whose ID is passed in the sessionID parameter. Since a 4D Mobile session can manage several processes, this command actually requests all the Web processes related to the session to finish their execution.
On Web Legacy Close Session database method
Web Sessions Management (Legacy)
Product: 4D
Theme: Web Server
Number:
1208
Created: 4D v13
Modified: 4D v15 R4
Renamed: 4D v18 R6 (WEB CLOSE SESSION)
cookies
4D Language Reference ( 4D v20 R7)