Page 1 of 3

Session variables

Posted: Sat Jun 01, 2019 4:01 am
by stevec
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"?

Re: Session variables

Posted: Mon Jun 03, 2019 10:22 am
by jasonzhou
Does the "Session variables" mean /SysStates or /SharedStates? Both of them are stored by schema.

Thanks.

Re: Session variables

Posted: Tue Jun 04, 2019 5:01 am
by stevec
Sharedstates.

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

Re: Session variables

Posted: Thu Jun 06, 2019 4:13 pm
by jasonzhou
User can't clear it. You need to programmatically clear them. Thanks.

Re: Session variables

Posted: Thu Jun 27, 2019 1:32 am
by stevec
Somehow it appears a (or all) session variable is getting cleared or corrupted.

How can I close the app programatically when this occurs?

Re: Session variables

Posted: Thu Jun 27, 2019 9:36 am
by jasonzhou
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

Re: Session variables

Posted: Thu Jun 27, 2019 11:53 pm
by stevec
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.

Re: Session variables

Posted: Mon Jul 01, 2019 1:33 pm
by jasonzhou
Does this happen randomly? Is it easy to reproduce this issue?

Re: Session variables

Posted: Tue Jul 02, 2019 1:26 am
by stevec
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.

Re: Session variables

Posted: Wed Jul 03, 2019 9:16 am
by jasonzhou
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.