4D v16.3WEB Get session process count |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
WEB Get session process count
|
WEB Get session process count ( sessionID ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
sessionID | Text |
![]() |
Session UUID | |||||
Function result | Longint |
![]() |
Number of processes attached to the session | |||||
The WEB Get session process count command returns the number of running processes attached to the session whose UUID you passed in sessionID.
This command is added in the context of the Handling of 4D Mobile sessions by programming feature introduced in 4D v15 R4. It is mainly designed to count the number of processes run by a 4D Mobile session.
You want to store information on the current 4D Mobile session in arrays:
C_TEXT($sessionID)
C_LONGINT($count)
C_DATE($expDate)
C_TIME($expTime)
$sessionID:=WEB Get Current Session ID
$count:=WEB Get session process count($sessionID)
WEB GET SESSION EXPIRATION($sessionID;$expDate;$expTime)
APPEND TO ARRAY($aTimestamp;String(Current date)+" "+String(Current time))
APPEND TO ARRAY($aSessionUID;$sessionID)
APPEND TO ARRAY($aNbProcesses;$count)
APPEND TO ARRAY($aExpirationDate;$expDate)
APPEND TO ARRAY($aExpirationTime;$expTime)
Product: 4D
Theme: Web Server
Number:
1350
Created: 4D v15 R4
4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)