PHP,使页面自动检测管理员所做的更改

just wanna ask your opinions regarding this scenario that I want to achieve, I have an admin site and members area. Now, if the admin deleted the id of the current user who is logged-in on the members area page, the members_area.php will automatically refresh and redirect them to the login page. Is this possible by only using php, I don't want to use javascript/jQuery to achieve this :)

  • Please feel free to comment if you think my question is not that clear.

This will work on the next refresh initiated by the user. If you want auto refresh you have to use some javascript to validate the credentials from time to time or listen to push notifications (websockets)