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
client login system
Moderator: General Moderators
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");
?>Real programmers don't comment their code. If it was hard to write, it should be hard to understand.