Server Module Session Handling VLWEB
Posted: Tue Jul 10, 2018 11:12 am
I've set up a server module routine to issue a startsession and a second one to specify Session(*Required). If I call the second routine after a successful start session call it all works fine.
If I remove the startsession call to test what happens if the session is not there I'm getting javascript error
LESERVER.LOADLANGUAGESCENTRES: Invalid Web application session.
While this is correct I expect to receive a Failed event so I can handle it gracefully. Crashing is no good to me. What am I doing wrong.
#LoadLangCentres.ExecuteAsync(...
Evtroutine Handling(#LoadLangCentres.Completed)
...
Evtroutine Handling(#LoadLangCentres.Failed) Reason(#REASON)
Signal Event(LoadLangCentresFailed)
Signal Event(ServerModuleFail) Function("LOADLANGUAGEANDCENTRES") Reason(#REASON)
Endroutine
If I remove the startsession call to test what happens if the session is not there I'm getting javascript error
LESERVER.LOADLANGUAGESCENTRES: Invalid Web application session.
While this is correct I expect to receive a Failed event so I can handle it gracefully. Crashing is no good to me. What am I doing wrong.
#LoadLangCentres.ExecuteAsync(...
Evtroutine Handling(#LoadLangCentres.Completed)
...
Evtroutine Handling(#LoadLangCentres.Failed) Reason(#REASON)
Signal Event(LoadLangCentresFailed)
Signal Event(ServerModuleFail) Function("LOADLANGUAGEANDCENTRES") Reason(#REASON)
Endroutine