09-11-2020, 03:18 PM
Hi,
WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL) in IW15.1.22 works different from IW15.2.17
In the old version the current session would be terminated and a new one would be started.
In the new version the current session is terminated and a 303 status is send to the browser.
I used it to logout a user and present the logon screen again.
WebApplication.TerminateAndRedirect('logoff.html') still works as expected.
WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL) in IW15.1.22 works different from IW15.2.17
In the old version the current session would be terminated and a new one would be started.
In the new version the current session is terminated and a 303 status is send to the browser.
Code:
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL);
end;
I used it to logout a user and present the logon screen again.
WebApplication.TerminateAndRedirect('logoff.html') still works as expected.