Application Development and Automation 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: 
Read only

LogOff issue

Former Member
0 Likes
504

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
Read only

Former Member
0 Likes
485

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

Read only

0 Likes
485

Hi Ninad

Thanks for your reply.

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

Monika

Read only

0 Likes
485

Hi Monika,

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

Ninad