Using_APEX_Sessions_in_plsql_webpages

I am working on a project that needs to integrate an APEX app (4.1.1) in 11gR2 database with an old pl/sql web toolkit (HTP.P calls) application.
I need to authenticate both users once using a custom database table.
Users will login in using an APEX page and then fing a link to the old pl/sql app.
They can use the old app as usual but I need to use APEX session management for those non APEX Pages.
How would you implement the following in a stand-alone pl/sql procedure:
1) Capture the APEX session id (either from APEX cookie or read session variable) and pass it to each external webpage (pl/sql procedure web page)
2) Validate the APEX session id in each external pl/sql procedure (non-APEX) before displaying the page to user.
3) Updating the APEX session expiration if user navigates to the non-APEX pages.
I found that APEX uses this internal table for sesion management, but I want to avoid updating that and use somehow a call to blank APEX page or function every time and let APEX update the session from pl/sql procedure (if possible)
desc apex_040000.wwv_flow_sessions$
==>

937449 wrote:
I am working on a project that needs to integrate an APEX app (4.1.1) in 11gR2 database with an old pl/sql web toolkit (HTP.P calls) application.
I need to authenticate both users once using a custom database table.
Users will login in using an APEX page and then fing a link to the old pl/sql app.
They can use the old app as usual but I need to use APEX session management for those non APEX Pages.
How would you implement the following in a stand-alone pl/sql procedure:
1) Capture the APEX session id (either from APEX cookie or read session variable) and pass it to each external webpage (pl/sql procedure web page)
You can always capture the session ID from your apex app using built-in item http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_sub.htm#HTMDB25037
2) Validate the APEX session id in each external pl/sql procedure (non-APEX) before displaying the page to user.Open you non-apex pages within your apex app using frames without navigating away from you current application
FYI http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_auth.htm#BABHDFII
3) Updating the APEX session expiration if user navigates to the non-APEX pages.
You can simplay do a logout http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_auth.htm#AEAPI232
You can use this to expire the session in other way http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDDHJAH
>
I found that APEX uses this internal table for sesion management, but I want to avoid updating that and use somehow a call to blank APEX page or function every time and let APEX update the session from pl/sql procedure (if possible)Update the tables directly at your own risk (Oracle does not support)

Similar Messages

Maybe you are looking for

  • Changing value in drop-down based on selected value in another drop-down

    Hi, I have two drop-downs - changing value in Combo1, should cause the form to be submitted and values to be populated in Combo 2. Approaches i tried - 1) I am using an ActionListener. I am having a valueChange method which accepts an action event. H

  • Can u help me plz.........

    what is the difference between interactive report and drill down report?

  • Invalid content type for SOAP: TEXT/HTML:communication channel modification

    Hello , While delivering an async message from XI to thirdparty, getting an error 'invalid content type for SOAP: TEXT/HTML' in the RWB/adapter engine I need to modify Module tab for MessageTransformBean / content type as text/html. Can anyone tell m

  • SMS sending on N73-ME

    Hi, I have a weird problem with my N73 ME phone. Sending sms' takes considerable time, sometimes as much as 2-3 minutes! And during this interval, no other application works! Even the incoming calls are not prompted! Is there a solution to this or ha

  • HT5330 I'm trying to add another iCloud email address; it refuses password???

    I am trying to create a second iCloud email address;  I followed directions for Snow Leopard and get account created, am using my Apple ID signin as password.  Account will not go online and keeps asking me for password. Then rejects what I type in..