And it was working as expected, whenever I don’t have valid session anymore, I got redirected to login page.
But for some time now, when I have switched away from my mobile browser and later that day I reopen it for my apps tab, I now don’t get redirection, but rather unfriendly message:
What could be causing this behavior change, and what would be user friendly way of handling this error code, can it be caught on the same before page enter handler?
Hi @Dima Took some time for me to constantly reproduce issue.
For context i have following Login settings:
Now, when I log into web app with a user on lets say Android smartphone (using chrome browser)
Then logging in with the same user on desktop (also using chrome browser).
On mobile device when i swipe to refresh, i get the above mentioned 3048 error, when i swipe to refrsh again, i the On Before Page Enter logic is executed.
This is not limited to mobile devices as the same behavior is also if switching on which device i log in first.
Also note, that if I don’t refresh on the step # 3 but click to another page through navigation item, it executes On Before Page Enter logic and i am navigated to login screen as expected.
But, additionaly there are some pages that ends up with not a redirect but with different error:
Why there is this unfriendly session expiration message? What needs to be done so that system page, session expired is displayed? Or how to handle so that end user does not see this black screen with error message?
Below is video with similar steps, just the last step is not refresh but just opening app from chrome nav bar.
Could you please share how looks the “works as expected”, as I am now getting confused as what to expect even.
Like, should it display session expired systems page, should it just redirect using my logic on before page enter, or something else is this “works as expected”?
You are encountering these errors because the requests are being made from a logged-in user whose user token has expired. To resolve this, you should implement error handling to detect when this occurs and prompt your customer to log in again.