I'm new to PHP. I have created a system where the users include user and admin. I login as a user in the system and the URL is localhost/View/user.php
.
When I change the URL from localhost/View/user.php
to localhost/Admin/admin.php
, the user automatically has an admin interface.
My question is - how can I stop the user from being able to change the URL to /admin.php
and accessing the admin interface?