JsessionID of OraFormsFaces Applet in the JSPX

This forum can be used to ask support with using the OraFormsFaces component library

JsessionID of OraFormsFaces Applet in the JSPX

Postby jimr1234567890 » Mon Mar 08, 2010 17:52

Is the JsessionID of OraFormsFaces Applet in the JSPX the same as the JsessionID of the calling JSPX?

I was also particularity interested I you could pass COOKIE information from the calling JSPX to the OraFormsFaces applet. Or can the Oracle Form itself gain access to the Cookies of the calling JSPX page.
jimr1234567890
 
Posts: 6
Joined: Wed Feb 17, 2010 17:06

Re: JsessionID of OraFormsFaces Applet in the JSPX

Postby wilfred » Mon Mar 15, 2010 15:41

The client browser has a session with the JSF server. This has a unique JSESSIONID cookie.

The OraFormsFaces applet that runs within the page does not have a session with the JSF server. It does have a session with the Java container running the Forms Server, but this is a separate server with another JSESSIONID.

You can get a hold of the JSF JSESSIONID cookie from JavaScript. Since OraFormsFaces also enables you to run JavaScript from PL/SQL you can do something like this:
Code: Select all
v_cookies := offJavaScript.jsEval('document.cookie');


This will get the document cookies from the browser which should contain the JSESSIONID of the JSF server session. Be aware that newer versions of WebLogic will include the JSESSIONID cookie with the "httponly" flag set meaning it will not be available from JavaScript. However, you can specify not to use the httponly flag in the weblogic.xml:
Code: Select all
  <session-descriptor>
    <cookie-http-only>false</cookie-http-only>
  </session-descriptor>
User avatar
wilfred
Site Admin
 
Posts: 177
Joined: Sat Feb 02, 2008 16:08
Location: The Hague, the Netherlands


Return to Support Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron