Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL) changed
#1
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.


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.
Reply


Messages In This Thread
WebApplication.TerminateAndRedirect(WebApplication.ApplicationURL) changed - by jeroen.rottink - 09-11-2020, 03:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)