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!