4D v16.3

WEB Get session process count

Home

 
4D v16.3
WEB Get session process count

WEB Get session process count 


 

WEB Get session process count ( sessionID ) -> Funktionsergebnis 
Parameter Typ   Beschreibung
sessionID  Text in Session UUID
Funktionsergebnis  Lange Ganzzahl in Number of processes attached to the session

Die Funktion WEB Get session process count gibt die Anzahl der laufenden Prozesse innerhalb einer Session mit der in SessionID übergebenen UUID zurück.

Diese Funktion wurde im Rahmen der Funktionalität 4D Mobile Session per Programmierung verwalten hinzugefügt, die mit 4D v15 R4 eingeführt wird. Sie dient hauptsächlich zur Angabe der Anzahl der Prozesse, die in einer 4D Mobile Session laufen.

  • Für eine 4D Mobile Session gibt sie die aktuelle Anzahl der Prozesse zurück. In einer 4D Mobile Session können mehrere Prozesse laufen.
  • Für eine reguläre Web Session gibt sie immer 1 zurück (eine Web Session = ein Prozess).

Die Information der aktuellen 4D Mobile Session in Arrays speichern:

 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)



Siehe auch 

Web Sessions verwalten

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Web Server
Nummer: 1350

This command can be run in preemptive processes

 
GESCHICHTE 

Erstellt: 4D v15 R4

 
ARTIKELVERWENDUNG

4D Programmiersprache ( 4D v16)
4D Programmiersprache ( 4D v16.1)
4D Programmiersprache ( 4D v16.2)
4D Programmiersprache ( 4D v16.3)