Forum Post: RE: Rollbase Mobile: login problems after logging out

  • Thread starter Thread starter Anil Kumar
  • Start date Start date
Status
Not open for further replies.
A

Anil Kumar

Guest
Hi Harrie, As we are not calling the Logout operation (instead invoking the browser back button) and this do not actually clear the session of the Rollbase mobile application, thus an error is shown in mobile emulator when logging into same session which is expected behavior as the Rollbase app is session bounded. I tried adding the ‘DefaultSessionLogout’ (SessionService_Logout) event for a custom button (say My Logout) and clicking this button performed proper logout operation. i.e., after clicking this button the navigation is moved to login page and when we provide proper username, password the AppDetailPage is shown properly in the emulator. Attached Rollbase application XML for reference. Thanks and Regards, Anil Kumar. From: Harrie Kuijper [mailto:bounce-hkuijper@community.progress.com] Sent: Tuesday, November 04, 2014 5:12 PM To: TU.Rollbase@community.progress.com Subject: [Technical Users - Rollbase] Rollbase Mobile: login problems after logging out Rollbase Mobile: login problems after logging out Thread created by Harrie Kuijper Hi all, I'm having a problem with the Mobile app I'm developing. To reproduce, login into the mobile app, press the back button of your phone (or go back in browser, when using mobile preview), and log back in. Now the following 'error' appears: HTTP Status 200: Failed to log in. Attempted to call login() on a Session object that is already logged in. status (from jqXHT) :200 statusText (from jqXHT) :OK responseText (from jqXHT) :{"status_code":"200", "status_txt":"Successfully Logged in ." } It seems that the authentication process was succesful, but somehow throws an error because I'm already logged in. I tried adding an event to the Backbutton event, which calls the LogoutService, but this didn't work out. When clicking the Logout button, everything works fine. Does someone have an idea how to solve this? Attachments: Screenshot_2014-11-04-09-35-18.png Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top