Oracle9iAS Portal Developer Kit

check_if_logged_on function

Contained in package wwsec_app_priv.

Call this function to check if the user is logged in i.e., not using the PUBLIC account. It displays the user Login Page if the user is not.

function check_if_logged_on

(

  p_requested_url in varchar2 default wwctx_api.get_product_schema || '.home'

)

return boolean;

Version: Oracle Portal 3.0.6.6.5 or later

Parameter:

p_requested_url

The URL of the object for which privileges are being checked.

Notes:

  • The requested URL is the location that the user's browser displays after a successful authorization.

  • The requested URL may be passed in as an argument.

Datatype: in varchar2
Default: wwctx_api.get_product_schema || '.home'

Returns:

This function returns TRUE if the user is logged in, FALSE if not.

Exceptions:

This function returns no exceptions.

Example:

if wwsec_app_priv.check_if_logged_on

(

p_requested_url => wwctx_api.get_product_schema || '.this_procedure'

)

then...

Related topics

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