Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PHP Die() equivalent

mcardiaFeb 9 2011 — edited Feb 10 2011
Hi!

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2011
Added on Feb 9 2011
5 comments
356 views