Session variables

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Session variables

Post by stevec » Thu Aug 08, 2019 7:55 am

Had 2 more problems today where android session variables were wiped out.

stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Session variables

Post by stevec » Thu Aug 08, 2019 10:30 pm

AGain this morning 2 more android devices lost session variables.

jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: Session variables

Post by jasonzhou » Fri Aug 09, 2019 9:07 am

Thanks for letting us know this. We will have a code review as soon as possible see if there's any possibility may cause this issue. We will also keep testing our program see if we can reproduce it. As long as we can reproduce this issue, it would be easy to fix it.

jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: Session variables

Post by jasonzhou » Mon Aug 12, 2019 10:26 am

The SharedStates variables are stored in device's internal storage that is private for app, only the following situations can clear it
1. Explicitly clear it from server
2. The device's internal storage is full, in this case, OS may clear it. (It rarely happen)
3. User deleted server profile or used a new one
4. User uninstalled the app
5. User cleared app data in device settings

stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Session variables

Post by stevec » Mon Aug 12, 2019 10:59 pm

Happened 2 more times this weekend.

How would server clear them all at once (not individually)?

How does user clear them in settings (android)?

jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: Session variables

Post by jasonzhou » Fri Aug 16, 2019 9:22 am

Server can't clear them all.

In Android settings, under each app, there is a "Clear Data" button, which will clear saved data.

stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Session variables

Post by stevec » Wed Sep 11, 2019 5:26 am

The android clear cache seems to be what is happening. There is a free app you can download too to clear the cache automatically at intervals which is the likely culprit.

jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: Session variables

Post by jasonzhou » Wed Sep 11, 2019 12:25 pm

That makes sense. Thank you.

Post Reply