Wappler Version : 3.9.7
Operating System : NA
Server Model: PHP
Database Type: MySQL
Hosting Type: AWS
Expected behavior
What do you think should happen?
Once your user has logged in, then all server restricts should work consistently.
Actual behavior
What actually happens?
Sometimes they all stop working and return unauthorised. It occurs completely randomly, and has taken me several weeks of working with my client to get a screenshot of the dev console to know more of what occurs.
When it happens, I think what goes wrong is consistent each time. Here is the process… lots of images to illustrate it are all below.
-
The user logs in okay.
-
A number of server actions are called which normally all run okay.
-
Occasionally, one of them (search_activities.php) returns unauthorised, and then all the subsequent ones return unauthorised too.
-
If the user restarts their browser and logs in again, it all works okay.
The problem occurs on average every 2nd-5th time they log in. It also seems to occur more for one client I have than another.
Am happy to supply any other information you need!
Best wishes,
Antony.
Normal operation
When the unauthorised problem occurs (all red calls are showing unauthorised)
(Note that while there are two calls to search_activities.php, the second one which causes the unauthorised to occur happens after some user interaction, whereas the first one which works okay happens as part of the login process)
search_activities.php
search_activities.php - security provider
search_activities.php - security restrict
Last updated: