cancel
Showing results for 
Search instead for 
Did you mean: 

Logoff user and redirect to Portal Logon page

Former Member
0 Kudos

Hi,

I have a webdynpro application in which on click off a button, I need to logoff the user from Portal and redirect the user to logon page.

Please suggest how this can be achieved

regards,

Priyanka

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I created a url iview with the url for portal logon and used the portal navigation to navigate to this url anf log off.

Former Member
0 Kudos

HI

create a button and create an action exit.

in exit method write the following code

public void onActionexit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionexit(ServerEvent)

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

//@@end

}

if you want to close window

Create a Link To Url and

give reference = /portal_logoff

Regards

Abhijith YS

null

Former Member
0 Kudos

Hi,

Use a code like this on click of the link:

WDClientUser.forceLogOffClientUser("http://<url string>");

This code log-off user only from WD application.

former_member185029
Active Contributor
0 Kudos

Hi,

Use

WDClientUser.forceLogoffClientUser(String URL);

Ashu