Jump to content

User Management System Questions


coderzm

Recommended Posts

Hi all,

 

I have some questions about creating a simple PHP user management system. I would like to create a website for users where they are able to a. Register an account b. Login and c. View information unique to them.

 

1. If my website is www.mywebsite.com, how do I create a different URL for different registered users upon login. For example, if User A logs in, he/she will see www.mywebsite.com/userA

2. If each user has access to unique data, how do I create the URLs to look like this - www.mywebsite.com/userA/example-page 

 

Appreciate any pointers. Thank you.

Link to comment
https://forums.phpfreaks.com/topic/297621-user-management-system-questions/
Share on other sites

Hi NotionCommotion,

 

Thanks for your reply.

 

Yeah, I would have a user.php file that renders dynamic content based on username.

 

However, changing the url to www.mywebsite.com/userA seems to be the "usual" practice as seen in FB, Instagram, Twitter, etc. That's the reason for me trying to do that.

That is only something you would do if there is a public facing aspect to the system, where other users would be able to see information about the user in question, or interact with them in some way. Facebook and Twitter are both social networks that are driven by that design.

 

Most systems don't do that unless it's specifically for the reason of providing a public facing page for others. When you login to Facebook, your url's don't all become Facebook.com/yourname/....

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.