This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 21, 2011, 1:49 PM
33 Posts
topic has been resolvedResolved

Prevent Session Timeout

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: timeout
  • Replies: 3
Hi
 
Due to some rather important databases, our server has a session timeout of around 10 minutes.
 
However, I have another less important system which I would like users to remain logged into until they close the web browser.
 
I have tried the timeout settings on the XPage properties but it seems this does not over-ride the server setting.
 
Does anyone know of a way of doing this?  Perhaps an automatic page refresh after 9 minutes? 
 
Thanks 
Mar 21, 2011, 1:55 PM
30 Posts
Re: Prevent Session Timeout
 Have you tried "pinging" the serve thru an AJAX request?
 
You can use the JavaScript function setTimeout for this purpose. 
 
 
Using AJAX this would be transparent to the user. Haven't tried if this refreshes the session with the server, but it should. 
 
Don't forget to add a URL-parameter that changes with each request, to prevent caching of the AJAX request. 
 
 
 
/J 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal