06-04-2024, 08:38 AM
Hi Lou,
Paul is correct if you want to keep the source as it is.
But I definitely would recommend setting
ServerController.SessionOptions.BrowserCheckBeforeNewSession = True
You just need to check if aSession is assigned.
In most ServerController events where a TIWApplication instance is passed as a parameter is a good rule of thumb to check for an assigned aSession parameter before doing anything with it. Some events guarantee to have a valid session, but others don't. That's the case with Browser check event.
and change the code.
Paul is correct if you want to keep the source as it is.
But I definitely would recommend setting
ServerController.SessionOptions.BrowserCheckBeforeNewSession = True
You just need to check if aSession is assigned.
In most ServerController events where a TIWApplication instance is passed as a parameter is a good rule of thumb to check for an assigned aSession parameter before doing anything with it. Some events guarantee to have a valid session, but others don't. That's the case with Browser check event.
and change the code.