Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

LogOff issue

Former Member
0 Kudos

Hi all

I want to logoff the portal on click of a button in my application.

I am using NWDS 2.0 and EP6.0

I have tried differrent approaches(WDforceLogoffClientUser , WDPortalEventing.fire ) but couldn't succeed .

Please Help!!!!

Thanks

Monika

3 REPLIES 3

Former Member
0 Kudos

Hi Monika,

You can try bellow code


WDDeployableObjectPart d = wdComponentAPI.getApplication().getDeployableObjectPart();
String url = null;
try {
	url = WDURLGenerator.getApplicationURL(d);
} catch(WDURLException e) {
}
WDClientUser.forceLogoffClientUser(url);

Ninad

0 Kudos

Hi Ninad

Thanks for your reply.

But this will logoff from the application only not from the portal i guess.

Monika

0 Kudos

Hi Monika,

If you are using it in portal it will log off from the whole portal session not just that application session.

Ninad