Skip to main content
Version: 20 R7 BETA

WEB LEGACY CLOSE SESSION

WEB LEGACY CLOSE SESSION ( sessionID )

ParameterTypeDescription
sessionIDTextSession UUID

Compatibility Note

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.

Description

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.

See also

On Web Legacy Close Session database method
Web Sessions Management (Legacy)

Properties

Command number1208
Thread safe