Jump to content

hash url?


KaiSheng

Recommended Posts

Well, hi again.

 

According to my previous thread, it works perfectly.

url will show ...gameInfo.php?id=1 or gameInfo.php?id=2

according to the person who login, they will received the respective links that is matched to the user id in database.

 

Okay, so here's the problem, when i am user id 2, it shows as gameInfo.php?id=2

However, when i change the url to gameInfo.php?id=1, i can see the information of the user of userid 1.

Is there any way to go about this?

 

Help thanks <3 !

Link to comment
https://forums.phpfreaks.com/topic/283710-hash-url/
Share on other sites

for anything security related, you must check if the current logged in visitor is authorized to view the information.

 

for something like a profile link, if the id from the link is different from the currently logged in user's id (held in your session variable), you would only display the 'publicly' accessible information or none at all if that's your desire.

 

if the id from the link is the same as the currently logged in user's id, the user would have full permission to view all of the available information.

Link to comment
https://forums.phpfreaks.com/topic/283710-hash-url/#findComment-1457485
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.