Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue when calling TerminateAndRedirect on an Amazon cloud server
#1
Hi,

We are facing an issue when calling WebApplication.TerminateAndRedirect on an Amazon cloud server (Windows Server 2019, 64 bits). However, everything works fine on the development computers and the other Windows servers we tested so far.
 
The TerminateAndRedirect method is called from a button async click event. On the cloud server only, this triggers an "AJAX request failed: The application server did not respond." error. Enabling the ExceptionLogger did not help because no exception is raised. The IntraWeb session gets correctly terminated though.
 
We tested replacing the TerminateAndRedirect call by the following instructions, but this still triggers the same issue:
WebApplication.CallbackResponse.AddJavaScriptToExecuteAsCDATA('window.location.replace("' + WebApplication.AppUrlBase + '");');
WebApplication.Terminate;
 
However, replacing by the following instruction does the trick (terminating the session and redirecting to the main page) on all the servers we tested (including the cloud server):
WebApplication.CallbackResponse.AddJavaScriptToExecuteAsCDATA('window.location.replace("' + WebApplication.AppUrlBase + '$/start");');
 
For information, we are using:
  • IntraWeb 15.2.49
  • Delphi 10.4.2
  • SessionOptions.RequiresExplicitStart := False
  • SessionOptions.RestartExpiredSession := True
 
Is this issue already known or even fixed?

Thank you for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)