php/mysql can anyone help me

Associate
Joined
28 Jul 2007
Posts
646
I have a login system up and running, but I need to add an additional function. I need each user to be able to log in to client specific pages. At the moment each user logs into the same page, and what I need is for each user to log in to their own page.

Im sure this is something very simple for someone who knows what they are doing, but I don't have have just been using coded and tutorials that I have found over the internet.

So if someone thinks they can help me out, please let me know
 
I did something vaguely similar to this a while ago, it turned out each user needed access to a slighly different page with different parameters for each page.

I ended up storing the page with querystring data in database. After the user had logged in with the correct username/pass i fetched this field from the database and redirected them to this page.

I'm sure there's a more fancy way of doing it, but this is simple and worked.
 
Can't you just setup permissions for users and then you just need to set the permissions on each page so you only allow users with specific permissions onto each page.

That's how I've done it.
 
^ ^ - plus what if the URLs are easy enough to re-write to get to pages which they're supposedly not meant to have access to ?

Well in my case querystring data was random and ecrypted.

But you could always use sessions or similar to store a logged in users ID.
 
Back
Top Bottom