cancel
Showing results for 
Search instead for 
Did you mean: 

log out application when using authentication check API

Former Member
0 Kudos

Dear all,

I am using authentication check API of SAP Netweaver Server in my application, and it has a Log Out button . I want to use that button for log out. How to code it ?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try this way

WDRequest requestObj = ((IWDProtocolAdapter) WDProtocolAdapter.getProtocolAdapter()).getRequestObject();

HttpServletRequest request = (HttpServletRequest)requestObj.getProtocolRequest();

WDResponse responseObj = ((IWDProtocolAdapter) WDProtocolAdapter.getProtocolAdapter()).getResponseObject();

HttpServletResponse response = (HttpServletResponse )responseObj .getProtocolResponse();

Here is the api:

http://help.sap.com/javadocs/nwce/current/wdr/com.sap.wdr/index.html?com/sap/tc/webdynpro/services/s...

Regards

Yugandhar Reddy

Answers (1)

Answers (1)

Former Member
0 Kudos

Bit confusing, if you are using the API then there should be method for logout.

Use the ume API http://help.sap.com/javadocs/NW04S/SPS09/se/index.html

See if u can use the IAuthentication class for logout.

-Yugandhar Reddy

Former Member
0 Kudos

Hiiii Yugandhar Reddy ,

Thanks for your answer, I see there has logout and forceLogoffUser methods, which need two parameters HttpServletRequest and HttpServletResponse. My project in web dynpro for Java and server manages that parameter. How should i choose best way ? Please help me, waiting your reply , if you have example as much as well.

Thank you !