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: 132
Joined: Wed Aug 22, 2012 3:45 pm

Session variables

Post by stevec » Fri May 31, 2019 1:01 pm

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: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Session variables

Post by jasonzhou » Sun Jun 02, 2019 7:22 pm

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

Thanks.

stevec
Posts: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Session variables

Post by stevec » Mon Jun 03, 2019 2:01 pm

Sharedstates.

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

jasonzhou
Posts: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Session variables

Post by jasonzhou » Thu Jun 06, 2019 1:13 am

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

stevec
Posts: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Session variables

Post by stevec » Wed Jun 26, 2019 10: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: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Session variables

Post by jasonzhou » Wed Jun 26, 2019 6:36 pm

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: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Session variables

Post by stevec » Thu Jun 27, 2019 8:53 am

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: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Session variables

Post by jasonzhou » Sun Jun 30, 2019 10:33 pm

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

stevec
Posts: 132
Joined: Wed Aug 22, 2012 3:45 pm

Re: Session variables

Post by stevec » Mon Jul 01, 2019 10: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: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: Session variables

Post by jasonzhou » Tue Jul 02, 2019 6:16 pm

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