Automatic Logout Time

Is there a way to increase/decrease the time an app will automatically log someone out?

Yes, there is, using a Timer in the Client.

To decrease the time, set the Timer to the interval you want. When the Timer ticks, explicitly log them out.

To increase the time, set the Timer to an interval just below the normal logout time. When the timer ticks, make an anvil.server.call() to any of your Server Module functions. This will reset the logout timer to zero.

1 Like