cancel
Showing results for 
Search instead for 
Did you mean: 

Portal logoff : Redirection or Close the Entire Window

Former Member
0 Kudos

Hi Folks

I need some clarity for the below scenario.

I have two login pages as

1.Default Login page

2.Custom Login Page

On clicking the LogOff in my Custom Login Page, it should take me back to my CUSTOM login page not to the Default.

But the portal takes me back to Default Login Page.

Can any one provide some pointers over this. where to do the modification inorder do proper redirection on logoff....

Thanks

Kumar

Points will be awared for sure.

Accepted Solutions (1)

Accepted Solutions (1)

eliel_schurman
Participant
0 Kudos

Hi Kumar,

I think I lost you. I thought you are trying to redirect to your custom logon page when logging off from the portal so the ume property I sent you should do the work. You need to configure there the url to your custom login page.

For example: you can configure the property "ume.logoff.redirect.url" to www.google.com so when logging off from the portal, it will redirect to google.

Regarding the header iView (masthead), take a look at the HeaderiView.jsp file -> method private String getExternalLogOffUrl() is reading the ume property "ume.logoff.redirect.url" to retrieve the logoff url -> return UMFactory.getProperties().get("ume.logoff.redirect.url");

Hope this help

Eliel.

Former Member
0 Kudos

Hi Eliel

Dear Friend

I totally agree wat u said , but i tried that option too, where i found RUNTIME ERROR happening....

i hope you are talking abt this below function , am I rite ?

//Get the external logoff URL
private String getExternalLogOffUrl()
{
   return UMFactory.getProperties().get("ume.logoff.redirect.url");    

// Here i tried this way  as you pointed...but it didnt work...
return UMFactory.getProperties().get("www.google.com");  
}

MoreOver if you look into SAP Notes 696294, where they mention as similar to ur suggestion.

From SAP Notes 696294:
To enable this feature, set the following UME properties:

ume.logoff.redirect.url=<url_users_are_redirected_to_after_logoff>
ume.logoff.redirect.silent=[true|false]

Set the second parameter to true if the URL is to be called silently in a hidden iFrame

I tried this way too, but fail to succed.

But My Friend , i found another work around where i am successful...

In the HeaderiView.jsp , down below the logoff operation

modify the Form as like below ,

*<form name="logoffForm" style="display:none;position:absolute;top:-5000;left:-5000" action="http://www.google.com" method="POST">*
*	<input type="hidden" name="logout_submit" value="true"></input>*
*</form>*

It worked for me ... Try it out....

Post me your comments over this...

Thanks

Kumar T

Former Member
0 Kudos

Hi Kumar,

I too have a similar requirement to call custom url after Portal log off and i tried modfying the form action in Masthead ear Header.jsp file(same code as above). Somehow its taking the componentRequest url and not redirecting to defined url in form action. Even if no action is provided for logoffForm form id, its redirecting to default portal login url. Please suggest some solution for this issue.

Thanks

Simran

Former Member
0 Kudos

This means that your par file is not getting updated. Clear the portal cache and navigation cache and then try. If it do not work, then try after restarting the server.

Regards,

Atul

Former Member
0 Kudos

Hi Atul,


Thanks for replying. I am working in CE 7.3 environment and there are no par files (ear files are deployed). Clearing portal cache and no impact on portal login url.

Basically i am trying to dynamically generate the action url in the logoffForm form action using the below method:

private String getLogOffpath (HttpServletRequest request)
{

String webpath1 = "http://"+((String)request.getLocalName())+":"+(request.getLocalPort());

String logOffLink = webpath1+"/irj/portal/anonymous";

return logOffLink;

}

and then calling this method in form action

<form name="logoffForm" style="display:none;position:absolute;top:-5000;left:-5000" action="<%=getLogOffpath(request)%>" method="POST">
  <input type="hidden" name="logout_submit" value="true"></input>
</form>

But this code is appending the dynamic created url to the standard login page.

Also tried to change the below properties but of no help:-


1.  Modified ume.logoff.redirect.url value to custom login url in
a) Portal(Sys Admin > UME Configuration) and
b) Config Tool(under the path cluster-data ->Global server   configuration->services->com.sap.security.core.ume.service)

and
2. Updated ume.logoff.redirect.silent value to 'true'(by default is false) in Portal

Please suggest some solution which could help us in making the above change.

Thanks In advance
Simran Kaur


Former Member
0 Kudos

What is the URL that gets generated dynamically?

Regards

Atul

Former Member
0 Kudos

Hi Atul,

The issue is solved now and log off link is dynamically fetching the server and port no. details required for anonymous url.

Thanks

Simran Kaur

Answers (2)

Answers (2)

eliel_schurman
Participant
0 Kudos

Hi Kumar,

In order to redirect to your custom logon page when logging off from the portal you should use the UME property: "ume.logoff.redirect.url".

Please follow the instructions in the following link on how to configure it.

http://help.sap.com/saphelp_nw70/helpdata/EN/44/aada5230be5e77e10000000a155369/frameset.htm

Regards,

Eliel.

Former Member
0 Kudos

Hi Folks

First of all, Thanks for quick response...

I am working with MastHead.par only...

Here i have tried different way, as like modifying the LogOFF script, but fail to success.

i also have a question, of how does this MastHead Par communicates with Login.par (as in default login par we have JSP file callled umelogoff.par)

can you provide some pointer in detail....

Eliel Schurman

The link you pointed out talks about Direct Editing..... whereelse in EP 7.0 we dont have that option. so lets ignore that.....

so , is there any other good link talking abt JSP file modification , inorder to achieve this....

Thanks

Kumar

Former Member
0 Kudos

Hi,

This you can do it in the masterhead par file.

In the action of the link, instead of redirecting to the default login page, give it as custom login page.

Regards,

Rajeev.