Integration of EBS-Apex - not able to get cookies in the shape of apex

Hello

I'm trying to connect shapes apex with E-Business Suite.

I wrote the following code in the PL/SQL called by the function of the form:

-------------
OWA_UTIL.mime_header (' text/html', false);
OWA_COOKIE. Send
(name = > 'APEX_APPS_': application,)
value = > FND_GLOBAL.user_name |': ' | apex_generate_hash (FND_GLOBAL.user_name),
path = > ' / '.
);

OWA_UTIL. REDIRECT_URL ("http://xxxxxxxx:xxxx / bus/apex/f?") p ='|| request: ': ' | page: ': ' | Re

Quest: ': ' | item_names |': ' | item_values);

----------------

Then I wrote this piece of code to read the cookie "before the process" section of the APEX

page I called above:

---------------
DECLARE
c OWA_COOKIE.cookie;
a wwv_flow_global.vc_arr2;
BEGIN
c: = OWA_COOKIE.get('APEX_APPS_'||:APP_ID);
a: = htmldb_util.string_to_table (c.vals (1));
.
.

-------------

This results is NO_DATA_FOUND which means I'm not able to get the cookie.

I've checked and matched cookie APEX_APPS_ < ID app > name in both places.

Can someone help me please? Why I am not able to get the cookie in the form of the apex?

Thank you.

: FSP_AFTER_LOGIN_URL: = 'http://xxxxxx.xxxx.com:7779 / bus/apex/f? p = 103:21 :'||: APP_SESSION |': & ptrace = YES;

There should be no previous colon & ptrace = YES.

The first two of them:

insert into temp12345 values (' session id ' | wwv_flow_custom_auth_std.get_session_id_from_cookie);
insert into temp12345 values ('username' | wwv_flow_custom_auth_std.get_UserName);

You have not authenticated, and yet, there is no cookie, where a session or a username can be obtained.

P_FLOW_PAGE =>: APP_ID | ": 21' |': & ptrace = 'YES);

You cannot use & ptrace here.

The next two years:

insert into temp12345 values (' session id ' | wwv_flow_custom_auth_std.get_session_id_from_cookie);
insert into temp12345 values ('username' | wwv_flow_custom_auth_std.get_UserName);

The cookie is sent to the browser to the login procedure. You can not access a cookie sent in an HTTP request in the same HTTP request. You will be able to access the next page, after the redirect to the login page after termination.

Scott

Tags: Database

Similar Questions

Maybe you are looking for