Oracle9iAS Portal Developer Kit

load_session static function

Contained in package wwsto_api_session.

Call this function to load and then return a copy of a session store object. Storage is located by the combination of the domain and subdomain parameters, and the Login session ID.

If a session store object has not previously been created for this combination of domain, sub-domain, and session ID, then an empty session store object is created and returned.

Note: As this function returns a copy of the data, it is possible to call load_session twice and have two independent copies of the data. The outcome of simultaneously operating on two copies of the same data is not defined.

static function load_session

(

p_domain in varchar2,

p_sub_domain in varchar2

)

return wwsto_api_session;

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_domain

The domain name for the session store object.

Datatype: in varchar2

p_sub_domain

The subdomain for the session store object.

Datatype: in varchar2

Returns:

This function returns a session store object to manipulate.

Exceptions:

This function raises no user-defined exceptions.

Example:

It is recommended that the provider implementation does not exist in the same schema as Oracle Portal. Therefore, calls to wwsto_api_session methods must be prefixed by the Oracle Portal owner schema, for example, PORTAL30.

declare
l_user_obj portal30.wwsto_api_session;
begin
l_user_obj := portal30.wwsto_api_session.load_session
(

p_domain => 'PORTAL',
p_sub_domain => 'TEST'

);
l_user_obj.save_session;

end;

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio