15.1.2 TerminateAndRedirect Error - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: 15.1.2 TerminateAndRedirect Error (/thread-1175.html) |
15.1.2 TerminateAndRedirect Error - matija - 08-12-2019 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>'); RE: 15.1.2 TerminateAndRedirect Error - Jose Nilton Pace - 08-12-2019 Hi Matija, try: WebApplication.TerminateAndRedirect( '/GoodBye.html' ); RE: 15.1.2 TerminateAndRedirect Error - matija - 08-12-2019 (08-12-2019, 12:16 PM)Jose Nilton Pace Wrote: Hi Matija, try: Not work! RE: 15.1.2 TerminateAndRedirect Error - kudzu - 08-12-2019 Try the same code with the Guess demo to eliminate any variables introduced by your application. RE: 15.1.2 TerminateAndRedirect Error - Alexandre Machado - 08-12-2019 Please update to 15.1.3 and see if it fixes. A few redirection issues has been resolved in that version |