This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
WEB LEGACY GET SESSION EXPIRATION

WEB LEGACY GET SESSION EXPIRATION 


 

WEB LEGACY GET SESSION EXPIRATION ( sessionID ; expDate ; expTime ) 
Parameter Type   Description
sessionID  Text in Session UUID
expDate  Date in Date of cookie expiration
expTime  Time in Time of cookie expiration

This command can only be used with legacy web sessions, available in databases converted from versions prior to 4D v18 R6. It returns null date and time values 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 GET SESSION EXPIRATION command returns the expiration information for the cookie of the session whose UUID you passed in sessionID.

The expDate parameter receives the expiration date and the expTime parameter receives the expiration time of the cookie.

Note: Each time a web request is sent, the expiration date and time of the cookie are reset to a value corresponding to the time of the request+the value of the Web Inactive session timeout. For example:
First request, Monday at 1:00
   -> Sends a cookie 4DSID xxxyyy expiration I+24h = Tuesday 01:00
Second request, Monday at 1:10
   -> Sends a cookie 4DSID xxxyyy expiration I+24h = Tuesday 01:10
Third request, Tuesday at 4:00: cookie expired
   -> Sends a cookie 4DSID aaabbb expiration I+24h = Wednesday 01:00



See also 

WEB Get Current Session ID
Web Sessions Management (Legacy)
WEB SET OPTION

 
PROPERTIES 

Product: 4D
Theme: Web Server
Number: 1207

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v13
Renamed: 4D v18 R6 (WEB GET SESSION EXPIRATION)

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)