Oracle9iAS Portal Developer Kit

get_sessionid function

Contained in package wwctx_api.

Call this function to return the identifier for the current session established for the browser connection.

Note: A session may be established by the set_context procedure.

function get_sessionid

return NUMBER;

Version: Oracle Portal 3.0.6.6.5 or later

Returns:

This function returns the session ID, or null if no session is set.

Exceptions:

This function raises no user-defined exceptions.

Example:

This example returns the session ID of the current Oracle Portal session.

begin

return wwctx_api.get_sessionid

end;

Note

A session defines the user logged in associated database account to which the current user is associated, the nls_language, the user's IP address, and the time that the user logged on.

Related topics

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