user login to a specific user page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eianto71
Forum Newbie
Posts: 5
Joined: Wed Nov 23, 2011 2:37 pm

user login to a specific user page

Post by eianto71 »

Hi iam a noob at this.
I create users and they are given certain access to a dashboard. What I want to do is be able to have a login user id and password for each user so that they can see there own dashboard. I have all the data in a Mysql server via javascript forms. They are a list of links and I donot want to give my users the web link because they can click everyone elses link to see other users dashboards. Please help.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: user login to a specific user page

Post by Celauran »

Why not create a login form that queries the database for username/password matches, save the resulting user ID to session data, and display the appropriate dashboard based on this id?
eianto71
Forum Newbie
Posts: 5
Joined: Wed Nov 23, 2011 2:37 pm

Re: user login to a specific user page

Post by eianto71 »

How long would something like this take to implement?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: user login to a specific user page

Post by Celauran »

A rough working copy that will validate the user and set the session data should take well under an hour.
eianto71
Forum Newbie
Posts: 5
Joined: Wed Nov 23, 2011 2:37 pm

Re: user login to a specific user page

Post by eianto71 »

looking for some one to implement into my software.
Post Reply