PHP Die() equivalent
mcardiaFeb 9 2011 — edited Feb 10 2011Hi!
There is a equivalent method like the PHP die() function.
I am writen a web application using web toolkit + ajax.
At all my procedures I call another procedure that checks if session is expired or not.
If it is, is, I was doing a redirect with owa_util.redirect_url but with ajax that is not cool, because
it redirects the ajax request and not the web document.
So, I´m rewriting it to work with ajax. When session expires I do:
owa_util.status_line(301, null, true);
htp.prn('EXPIRED');
I receive the 301 status at ajax, but the procedures continues and all the page requestes is send together with the word "EXPIRED".
So I want to do something like:
owa_util.status_line(301, null, true);
htp.prn('EXPIRED');
die()_*
Using raise / exception is not working for me.
Thanks.