OraFormsGetSessionId Function

Action

Once a connection with the Oracle Forms server is established, OraFormsGetSessionId can be used to capture the session ID cookie that was returned by the server during the connect process. The Recorder automatically scripts OraFormsGetSessionId and a WebCookieSet with the session ID on the applet's codebase. This ensures that all recorded HTTP requests use the session ID when additional files are requested that require valid session ID’s.

Include file

OraForms.bdh

Syntax

OraFormsGetSessionId( out sSessionId : string ) : boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sSessionId Contains the session cookie returned by the server during the connection process.

Example

dcltrans
  transaction TMain
  begin
    OraFormsSetBoolean("WINSYS_REQUIREDVA_LIST", false);
    OraFormsSetString("DEFAULT_LOCAL_TZ", "Europe/Berlin");
    OraFormsConnect("server module=javamail90.fmx usesdi=yes userid= "
                    "sso_userid=  temp_dir=C:\\orant\\forms90\\demos\\temp",  
                    "http://myserver:8888/forms90demo/l90servlet?ifcfs=/forms90demo/f90servlet?config=iorg",
                    "http://myserver:8888/forms90demo/");
    OraFormsGetSessionId(gsSSessionID);
    WebCookieSet(gsSSessionID, "http://myserver:8888/forms90demo/java/");
  end TMain;