Is it possible to avoid session timeouts?

Put a timer on the main form that calls a server function like this every 5 minutes :

@anvil.server.callable
def ping():
  return "pong"

I find that this keeps the comms open and hence the session open.

3 Likes