Oracle9iAS Portal Developer Kit

get_portal_login_url function

Contained in package wwsec_app_priv.

Call this function to return the URL for the login or logout link based on whether the current user is logged in or out.

function get_portal_login_url

(

p_requested_url in varchar2 default wwctx_api.get_proc_path(p_url => 'home'),

p_cancel_url in varchar2 default wwctx_api.get_proc_path(p_url => 'home')

)
return varchar2;

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_requested_url

The URL of the user Login Page.

Note: This parameter allows an application to specify a page to be displayed after authentication.

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

p_cancel_url

The URL of the page to be displayed when the user cancels authentication.

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

Returns:

This function returns the URL for the log in or log off link.

Exceptions:

This function raises no exceptions.

Example:

begin

htp.anchor

(

curl => wwsec_app_priv.get_portal_login_url,

ctext => wwsec_app_priv.get_portal_login_link_text

);

end;

Related topics

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