1. Sim Joo Pee
  2. PowerServer
  3. Wednesday, 16 August 2023 06:20 AM UTC

Hi Master,

 I had removed (set to 0) the transaction, session, request timeout setting from the Applications.json. (Please see attachment) However, it is still showing ERROR 224 (Session expired) after some time. Can anyone enlighten where i overlook? Thanks.

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 August 2023 13:17 PM UTC
  2. PowerServer
  3. # 1

Hi Sim;

  There are many possible timeouts in the N-Tier processing model in both the middle tier & DBMS tiers. IMHO, the best way around all of these & not to arbitrarily change these settings that could appear other App threads is to implement a "heart beat" feature.

   You can see such an implementation in my STD framework (since the 2018 release). Have a look at the OrderEntry Demo App built from the framework to see this feature in operation. It works for standard C/S, PiwerClient & PowerServer based applications.

FYI: http://chrispollach.blogspot.com/2018/02/ifc2018r1.html

Regards ... Chris 

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 August 2023 14:32 PM UTC
  2. PowerServer
  3. # 2

Hi Sim,

 

Did you restart the Web APIs after performing the changes to the files?

 

Regards,
Francisco

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 August 2023 15:50 PM UTC
  2. PowerServer
  3. # 3

It is big mistake to set timeouts to zero.  At a minimum, you are going to get licensing errors.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 16 August 2023 16:18 PM UTC
Hi Sim;

In addition to Armeen's good point, I would also look at implementing an inactive PS App feature. This is easy to implement using the Application object's Idle Event. This allows the App to close and more importantly, free up a PowerServer session to keep your runtime license quota in check. Food for thought.

Regards ... Chris
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.