Session Timing Out When Running Application Hosted in NI Web Server

Updated Mar 8, 2023

Reported In

Software

  • G Web Development Software
  • SystemLink

Issue Details

I'm hosting a web application in NI Web Server with authentication required or in SystemLink and after some time the sessions times out, so I need to re-log in to access the application. Can I avoid this behavior?

Solution

The NI Web Server session default timeout is set to 15 minutes.

If your web application makes at least one request before hitting the 15 minutes deadline, it should keep your session active and prevent it from expiring. You can add a simple HTTP request to occur in the background if you need your application to prevent the session from timing out.

Additional Information

SystemLink uses NI Web Server, so you can see this behavior in SystemLink too.