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>');
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>');