Atozed Forums

Full Version: 15.1.2 TerminateAndRedirect Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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>');
Hi Matija, try:
WebApplication.TerminateAndRedirect( '/GoodBye.html' );
(08-12-2019, 12:16 PM)Jose Nilton Pace Wrote: [ -> ]Hi Matija, try:
WebApplication.TerminateAndRedirect( '/GoodBye.html' );

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