Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Need Help with Redirect to another website

Need Help with Redirect to another website

From: Dwight Crane <dwight.crane_at_mci.com>
Date: Tue, 15 Sep 1998 12:39:10 -0400
Message-ID: <PIwL1.1457$Mo3.331310@news.mci2000.com>


Ok... I have a cookie that I am testing if it has a value.. if not then it throws the person to another site... only problem with this is that is seems you can only redirect upon the first opening of the session... and if a user goes to a page after he has already been there during that session you see the text ontop of the page "Location: http://pointed_to_website".

How can I do redirects whenever I want???

here is my code for the cookie checking I will actually see the text 'http://bl.mcit.com' on my page instead of it redirecting it Help~!~~~~!!

***********CODE**********
Procedure COOKIE_CHECK (company out varchar2)   IS
cook_comp owa_cookie.cookie;
cook_date owa_cookie.cookie;
BEGIN
cook_comp := owa_cookie.get('cCompany'); cook_date := owa_cookie.get('cDate');

IF cook_comp.num_vals >0 THEN
company := cook_comp.vals(1);

    IF (substr(cook_date.vals(1),0,4) = to_char(sysdate, 'DDYY')) THEN

        owa_util.redirect_url('http://bl.mcit.com');     END IF;
Else

    owa_util.redirect_url('http://bl.mcit.com'); END IF;
END; Dwight Received on Tue Sep 15 1998 - 11:39:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US