The address of the user’s page looks like profile?id=1 tell profile?id=1 how you can find out that the user on his page (that the page id is the same as the user id)?

    1 answer 1

    Most likely you have a login in a session or in cookies. By login we learn ID. If this ID is the same as the ID from the GET method, then the action is performed ...