Unknown reason for the automatic logout for Users and the forgetting of Role

Version of the platform: 10.0.1009.0
Type of Stack: .NET
Type of Application: Mobile

Hi all, 

We've been struggling with a problem and we have no real idea of how to determine what goes wrong and how to fix it subsequently so we thought we'd ask a question ourselves. In our mobile application it sometimes happens that an User clicks a screen and get's logged out and redirected back to the login screen, losing all the inputted data in the process. This can happen after an User resumes the application or after a while of working with it.

Moreover we also have the problem that occasionally an User will resume the application and the application will have forgotten the User Role, however will not log the User out of the application. This means that he can still access everything with registered Role, however all the Role specific screens he's not allowed in anymore.

We are using a Persisting login (RememberName = True) and we also checked the Service Center for Time Out setting but can't find an anomaly there either. Lastly we get the following log results however we aren't fully sure these are connected:

Problem 1:

Invalid call of the 'Login' client action of the 'Common.Login' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.

Problem 2:

DupMobile.NotMonteur: Monteur role required

Any chance you can share a small OML that reproduces the issue?

G. Andrew Duthie wrote:

Any chance you can share a small OML that reproduces the issue?

Hi Andrew,

We don't know what causes the issue so the problem is we can't really reproduce the issue. But here are a few screenshots of the login action and logout action (the only places they are being used) :

Hope this helps clear it up a bit