Salesforce

How to increase the web timeout setting in rpweb.xml, ehcache.xml, and MOCA registry files?

« Go Back

Information

 
TitleHow to increase the web timeout setting in rpweb.xml, ehcache.xml, and MOCA registry files?
SummaryNeed to know the maximum value that can be set for inactivityTimeoutMinutes parameter in rpweb.xml.
Web users are automatically being logged out after 5-10 minutes of inactivity. 
URL NameHow-to-increase-the-web-timeout-setting-in-rpweb-xml-ehcache-xml-and-MOCA-registry-files
Resolution
Description for the Parameter inactivityTimeoutMinutes - Maximum length of time (in minutes) the user is allowed to be inactive before being prompted to reauthenticate with REFS.  If the session expires before this time period has elapsed, the user will be prompted to re-login the next time they attempt to use Web UI.

In the application, we don't have a maximum, but there might be a maximum tied to the Java int datatype, but it would be fairly large, see https://stackoverflow.com/questions/150 of-integer. 

We don't believe that it would be a good idea to have an "all day" session or something even close to that. Ideally, you would only be logged in when actively working in the system, but somewhere in between is probably the correct answer.

It's usually best to have these set up to be offset from each other. That gives the Dlx Client time to have the user re-enter their credentials before the REFS server session expires, and the REFS server will have time to keep-alive the MOCA session. 

Recommendations are listed below. 

MOCA (session-idle-timeout integer=4200) - Stored in SERVER section of LES/data/registry file - This is set to 70 minutes. 

REFS (sessionCache timeToLive="3900") - Stored in $REFSDIR/settings/ehcache.xml - This is set to 65 minutes. 

NOTE: REFS 9.5 and beyond does not have a ehcache.xml file so these settings are made in rpweb.xml
See KCS article: 
How to adjust REFS web timeout in REFS 9.5 and beyond – Why does REFS user have to relogin reauthenticate after timeout
CLIENT (<inactivityTimeoutMinutes>60</>) - Stored in Client Section $REFSDIR/settings/rpweb.xml - This is set to 60 minutes. 

Need to bounce MOCA and REFS Services for these changes to go into effect. 

Stop Services 

1.  Select Start, Control Panel, Services
2.  Highlight REFS Server; ex: REFS(WMWEB91)
3.  Select Stop
4.  Click OK
5.  Highlight MOCA Server; ex: MOCA(WM91)
6.  Select Stop
7.  Click OK.
8.  Check task manager for any REFS or MOCA processes; end tasks

Start Services

1.  From Control Panel OR Select Start, Control Panel, Services
2.  Highlight MOCA Server; ex: MOCA(WM91)
3.  Select Start
4.  Click OK.
5.  Wait 3 minutes. 
6.  Highlight REFS Server; ex: REFS(WMWEB91) 
7.  Select Start
8.  Click OK.
9.  Retry to login. 

 
ProductsWarehouse Management
ModuleREFS, MOCA
Version9.1 and 2017
Error Message Code
Cause
Timeout parameters needs to be adjusted in the settings.  
Additional Information
Publication StatusPublished

Powered by