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: 133
Joined: Thu Aug 23, 2012 6:45 am

Session variables

Post by stevec » Sat Jun 01, 2019 4:01 am

are they stored by schema or across all schemas?

Curious if I have a variable for example for "MobileApp" and log in to app = "A" and it gets set. Then without closing and open another schema for "B" do I have 1 variable now "B" or 2 variables "A" and "B"?

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

Re: Session variables

Post by jasonzhou » Mon Jun 03, 2019 10:22 am

Does the "Session variables" mean /SysStates or /SharedStates? Both of them are stored by schema.

Thanks.

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

Re: Session variables

Post by stevec » Tue Jun 04, 2019 5:01 am

Sharedstates.

Is there a way the user can clear them out somehow on iphone?

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

Re: Session variables

Post by jasonzhou » Thu Jun 06, 2019 4:13 pm

User can't clear it. You need to programmatically clear them. Thanks.

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

Re: Session variables

Post by stevec » Thu Jun 27, 2019 1:32 am

Somehow it appears a (or all) session variable is getting cleared or corrupted.

How can I close the app programatically when this occurs?

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

Re: Session variables

Post by jasonzhou » Thu Jun 27, 2019 9:36 am

Unfortunately, there is no way to programatically close the app. Can you please have a look is it possible that server program cleared the session variable?
Thanks

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

Re: Session variables

Post by stevec » Thu Jun 27, 2019 11:53 pm

No it is not possible. I am adding code to send me an email with as much info as I can grab about device and key session variables. And then route back to login. Problem is that I have 3 apps and if the app session variable is corrupt then I do not know what login to route them back to.

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

Re: Session variables

Post by jasonzhou » Mon Jul 01, 2019 1:33 pm

Does this happen randomly? Is it easy to reproduce this issue?

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

Re: Session variables

Post by stevec » Tue Jul 02, 2019 1:26 am

No I cannot reproduce, seeing it happen occasionally on a customers box that is why I put in an error trap and sending myself email with info to help debug.

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

Re: Session variables

Post by jasonzhou » Wed Jul 03, 2019 9:16 am

Thanks for letting us know this. We will do some test with Sharedstates see if we can reproduce the issue first. If next time you can reproduce it and have client log, please send it to us via LANSA support.

Post Reply