04-01-2009 8:53 AM
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
04-01-2009 10:40 AM
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
04-01-2009 10:50 AM
Hi Ninad
Thanks for your reply.
But this will logoff from the application only not from the portal i guess.
Monika
04-01-2009 11:16 AM
Hi Monika,
If you are using it in portal it will log off from the whole portal session not just that application session.
Ninad