Posts: 166
Threads: 47
Joined: Jan 2020
Reputation:
4
Location: Portugal
That's great info.
Thanks!
Posts: 146
Threads: 34
Joined: Jun 2018
Reputation:
3
Location: USA
ServerController.HttpKeepAlive and ServerController.KeepAlive are 2 different things.
Posts: 92
Threads: 33
Joined: May 2018
Reputation:
0
Location: Sweden
Yes but if I use KeepAlive := True how can the application get a timeout? (SessionOptions.SessionTimeout = 20)
Posts: 146
Threads: 34
Joined: Jun 2018
Reputation:
3
Location: USA
If I remember correctly, if you set Keep Alive := true then the session timeout will only occur 20 min after the user closes their browser.
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
1) KeepAlive = mechanism to keep the form "pinging" the server at predetermined intervals to avoid that the session expires
2) HttpKeepAlive = part of the HTTP specification where the client and server agree to keep the connection open for a longer period of time
So,
(2) should be set to True in all application for performance reasons
(1) should only be set if it's a requirement for your application (and in general, only some forms should have this, others probably not).
Posts: 92
Threads: 33
Joined: May 2018
Reputation:
0
Location: Sweden
I just started my application in Delphi 12 and IW15.5.6 for the first time.
And I got this message: SessionOptions.SessionTimeout is locked. Suggestion: Set in ServerController OnConfig event instead.
I can see in the ServerController SessionOptions that there are many new properties
LockedSessionTimout etc. Explination is in order.
I'm setting the WebApplication.SessionTimeout after the user have logged in because different user shall have different Timeout values.
Can't I do that anymore?