cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Portal Logoff even?

Former Member
0 Kudos

Hello,

i have a situation, where on click of a button in the webdynpro iView the user have to get logged off from the portal and and the portal default login page should appear.

previously we had done this using exit plug..but after upgradation to 2004s its no more valid.

so we tried with portal navigation using url iView.. I have created a url iView and inside that have given the url as "http://<<server>>/portglobal/web/logoff.jsp"

and has used this code :

String str = "ROLES://portal_content/<<remainging path>>;

WDPortalNavigation.navigateAbsolute(

str, WDPortalNavigationMode.SHOW_INPLACE, (String) null, (String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, (String) null,

(String) null,null);

but its not navigating. its still in the same window.

when i did show in different window its saying iView not found. but the path is correct.

can you suggest me any thing on this?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

i have tried that also and i have put the log off url in the application parameter.

but its just saying "Application Terminated" but the redirection is not happening.

we are into 2004s. are we missing any patch in the server?

Thanks

Anirban

Former Member
0 Kudos

Hi Anirban,

Try providing this url to wdForceLogOffClientUser("/irj/portal?logout_submit=1");

Regards,

Murtuza

raja_thangamani
Active Contributor
0 Kudos

use below code:

com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.forceLogoffClientUser(null);

Raja T

Message was edited by:

Armin Reichert