Page 1 of 1

Quick script help (user accounts)

Posted: Mon Nov 01, 2010 10:07 pm
by Andrew2010
Hi, I have a website in the works, and I just finished the login/register/user account pages, but, the particular script I used doesn't allow members to view each others account pages. I would really appreciate it if someone could help me configure this php script. I was also wondering how to have each user have their own address (e.g. www.example.com/user/username or username.example.com)

I really hope someone can help me with this. Thanks.

Re: Quick script help (user accounts)

Posted: Mon Nov 01, 2010 10:27 pm
by Jonah Bron
Just compare the page to the session. If that's not the user that's logged in, give an error message.

As for the user page, you need Apache mod_rewrite. You can redirect, for example, /user/username to /user.php?user=username. Just google "mod_rewrite" or "pretty urls".