NT 7.15
I have finally tracked my web server crashing to the session expiration setting. When a session expires after no activity it causes the exception shown here:
Call Stack:
7/31/2013, 6:34:19 AM, 0:04:12,,3,Runtime error,Index out of range
Error point: 0040196C
Process PID=6556 Image: C:\CT8\Applications\Server\Web Server\cpweb_mn\cpweb_mn.exe
Thread 1 Handle=000000E0 TID=5552
I have added the code shown below to the Web Server procedure to set my own session time out:
! Start of "Override Default Server Settings"
! [Priority 5000]
IF Global:SessionTimeOut = 0
Global:SessionTimeOut = 30
End
ThisWebServer._SitesQueue.Defaults.SessionExpiryAfterHS = Global:SessionTimeOut * 6000 + 1
! End of "Override Default Server Settings"
Put(s_web._SitesQueue)
Global:SessionTimeOut is a long and can be set by the user (in minutes) but as the code shows it cannot be zero.
Is there anything wrong with my code above?
Chuck