Jump to content

User Management System Questions


coderzm
Go to solution Solved by gizmola,

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
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.

Link to comment
Share on other sites

  • Solution

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/....

Link to comment
Share on other sites

Hi Gizmola,

 

Ah yes.. That TOTALLY made sense. 

 

I see what you mean about it being public facing. I don't intend to make my system public facing, and other users will not be able to view others' URL. 

 

Thanks for your input!  :happy-04:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.