on 06-29-2011 3:40 AM
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.
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:
Regards
Yugandhar Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 !
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.