#1 2018-07-17 09:41:14

tomek
Member
Registered: 2017-10-24
Posts: 46

Session Timeout vs sicClientDriven Id instance

Hi
I've problem with session broken after about 30 minutes of inactivity. Session timeout for group User is set to default (60 min.), but after 30 min. delphi client gets:
401
"sicClientDriven instance not found or deprecated..."

Regards, Tomek

Offline

#2 2018-07-17 10:43:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: Session Timeout vs sicClientDriven Id instance

Isn't the TSQLRestClientURI.SessionHeartbeatSeconds correct?
(also ensure you have the latest framework version)

Offline

#3 2018-07-17 15:50:31

tomek
Member
Registered: 2017-10-24
Posts: 46

Re: Session Timeout vs sicClientDriven Id instance

I'm using CrossPlatform TSQLRestClientHTTP, and it hasn't SessionHeartbeatSeconds property.
When session timeout is set to low value, server throws 403-invalid signature - as expected.
There seems to be another validation for ClientDrivenId, which throws 401 before session expire.

Regards, Tomek

Offline

#4 2018-07-27 08:55:19

tomek
Member
Registered: 2017-10-24
Posts: 46

Re: Session Timeout vs sicClientDriven Id instance

In case someone else faced that problem:
ServiceFactoryServer instance has life timeout, for sicClientDriven, sicPerSession, sicPerUser or sicPerGroup modes. It's not dependent on Session timeout, default value is 30 minutes and can be set with SetTimeoutSec().

Regards, Tomek

Offline

Board footer

Powered by FluxBB