B4J Question Problem with b4j login timeout

PikeDr

Member
Licensed User
Longtime User
Hello,

I have a problem with the server variables for login from b4a to b4j. I control the user login using the following variable:
- req.GetSession.GetAttribute ("User_Registration").


Apparently everything is correct, but after about 60 seconds of inactivity, the variable becomes null. Does somebody knows why it could be?
 

PikeDr

Member
Licensed User
Longtime User
Hi Erel,

Sorry for the delay... I have checked the variable "Session.MaxInactiveInterval" value and is -1.

And I nerver call to GetSeeion.Invalidate.


Any other idea?
 
Upvote 0

PikeDr

Member
Licensed User
Longtime User
Hi Erel,


I think I have discovered the problem, i will try to explain it.


Some phone manufacturers(Nokia, Xiaomi, OnePlus,...), incorporate in their software an option to close applications in the background, related to the use of energy saving and ram. For this reason, when you block your phone, the services of some apps are stopped.


In my case, i am using a Xiaomi, and to solve the problem simply had to configure the app in "Background Configuration" mode as "No Restrictions".

Do you know if there is a possibility for to do this action automatically? or how to prevent this behavior of the app?


Excuse my poor English
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top