Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Please ask technical questions in the appropriate category. Thank you!

What is use of htp.init()

Vikram ShelkeMay 20 2024 — edited May 20 2024

Hi,

I am working on Apex 23.1.0.

I want to know the use of htp.init().

I am not finding exact information about it on the internet.

Can I use it in Apex page before header(pre rendering) process, refer below?

BEGIN
    htp.init;
     owa_util.mime_header ('text/html', FALSE);
     owa_cookie.send ( name    => 'NAME'
                     , value   => 'JOHN'
                     , expires => sysdate + 1
                     );
      owa_util.http_header_close;                
END; 

Currently I am getting 'Session not valid' error because of this.

Thanks.

Comments
Post Details
Added on May 20 2024
2 comments
118 views