Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
15.1.2 TerminateAndRedirect Error
#1
My code:
GGetWebApplicationThreadVar.TerminateAndRedirect('/GoodBye.html');

Error:
Project Project1.exe raised exception class EInvalidAppID with message 'Session ID is invalid.'.

It works with code:
GGetWebApplicationThreadVar.Terminate('<!DOCTYPE html>' +
'<html lang="en">' +
'<head>' +
'<meta charset="UTF-8">' +
'<title>My App</title>' +
'</head>' +
'<body>' +
'<h1>Goodbye.</h1>'
'</body>' +
'</html>');
Reply
#2
Hi Matija, try:
WebApplication.TerminateAndRedirect( '/GoodBye.html' );
Reply
#3
(08-12-2019, 12:16 PM)Jose Nilton Pace Wrote: Hi Matija, try:
WebApplication.TerminateAndRedirect( '/GoodBye.html' );

Not work! Sad
Reply
#4
Try the same code with the Guess demo to eliminate any variables introduced by your application.
Reply
#5
Please update to 15.1.3 and see if it fixes. A few redirection issues has been resolved in that version
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)