Skip to Content
author's profile photo Former Member
Former Member

How to erase cache/session SAP Gateway (iOS)?

Are there any methods that can be called from our SAP Gateway application to not generate a session when user does the login, or logout when the user exit of the application?

We have created an application for iOS and Android devices using SAP Gateway. The connections code has been generated with the tools provided by SAP for Eclipse and Xcode.

Both Android and iOS have a screen on which the user does the login before accessing the data provided by the application.

When user introduce user and password we validate login with the SAP Gateway and if the login is correct we allow it access to the data of the application. The problem comes when once user have successfully logged and return back to the login screen and enter a another user with any password, the SAP Gateway system responds that user exists without validating username and password and shows their data. This error only occurs in the iOS app in Android works fine.

We have found that the SAP Gateway generates a session associated with the user and terminal of the first time that user does login. Thus when user login again with another user the SAP Gateway system really doesn't check user and password and we found with an SAP Gateway open session. The application doesn't call any method to save the connection cache on the phone and we ignore the connection cache.

Thank you very much!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 10, 2012 at 12:28 PM

    Hello,

    iOS clients are not my daily business but in general, ODATA is provided by http requests from ERP backend. Thus, also session handling and logon is maintained there. You may check in this backend with transaction SICF, services under /sap/opu/...

    Here, you may find information how to set up logon/session handling ...

    http://help.sap.com/saphelp_gateway20sp05/helpdata/en/c3/424a2657aa4cf58df949578a56ba80/frameset.htm

    Regards & good luck,

    Matthias

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.