Page History
...
When a SrvRoutine is executed, the necessary session data is passed to the server and tested to ensure that the timeout hasn't been hit. If it has, the Failed event will be fired in Visual LANSA and the stateful client side can respond accordingly, perhaps showing the sign on screen again.
| Note |
|---|
| Note: You need to actually process this response to avoid Web Application has expired message. |
Mthroutine Name(DoSomething) Session(*Required)
Define_Com Class(#SessionServices.DoSomething) Name(#DoSomething)
#DoSomething.ExecuteAsync( #User )
Evtroutine Handling(#DoSomething.Completed)
#MyApplication.ShowDetails
Endroutine
Evtroutine Handling(#DoSomething.Failed)
#MyApplication.ShowSignon
Endroutine
Endroutine
| Note |
|---|
| Note: Time out policy when running in the Cloud. |
When running in the Cloud with a Load Balancer, it is important to ensure that the 'Stickiness Policy' timeout is greater than any Session timeouts in your application.
...