11-17-2023, 04:38 PM
Hi,
I'm building an app that requires the latest versions of browsers to be used. I found that IW support for the browser can be very forgiving, e.g., the app has to use Firefox v110 or newer, but IW can accept as old as 65.
Is there a way to limit the browser support?
I tried IWServerControllerBaseBrowserCheck to get the browser version, but I could not terminate the session as this event
Thank you
I'm building an app that requires the latest versions of browsers to be used. I found that IW support for the browser can be very forgiving, e.g., the app has to use Firefox v110 or newer, but IW can accept as old as 65.
Is there a way to limit the browser support?
I tried IWServerControllerBaseBrowserCheck to get the browser version, but I could not terminate the session as this event
Code:
procedure TIWServerController.IWServerControllerBaseBrowserCheck(
aSession: TIWApplication; var rBrowser: TBrowser);
var MinVersion: single;
const _BrowserMinFirefox = 110;
_sTerminateMin = ' min version is ';
begin
if (rBrowser.BrowserName = 'Firefox') and (rBrowser.Version < _BrowserMinFirefox) then
WebApplication.Terminate(rBrowser.BrowserName+_sTerminateMin+IntToStr(_BrowserMinFirefox)); //<-- Error here
end;
Thank you