Page 1 of 1

client login system

Posted: Fri Oct 07, 2005 4:25 pm
by dirksmith
Hi

I'd like to set-up a simple client login page for my website that would direct logged in users to their own specific webpage - rather than a generic members page.

Does anyone have any advice on how a basic log-in set-up can be extended to achieve this?

I assume it will involve setting up individual client accounts. Or is it possible to simply associate a particular target page with a particular username and password - set by me?

I've searched on-line for tutorials on this but have yet to find anything on setting up a very simple client login system. Links to any tutorials on this would also therefore be appreciated.

Thanx!

Dirk

Posted: Fri Oct 07, 2005 4:39 pm
by pickle
Most login pages direct users to a specific page after logging in. You can set up that page to redirect users accordingly:

Code: Select all

<?PHP

$username = $_SESSION['username'];
$query = "select homepage from users where username = '$username'";

//... execute query and get homepage location ...

header("Location: $user_homepage");

?>

Posted: Fri Oct 07, 2005 5:35 pm
by feyd
Moved to PHP - Code.