Jump to content

User login system, :)


Guest

Recommended Posts

Hi im wanting to build a login system that when a user logs in it take them to a there private page eg.

 

john logs in and it take him to john.php

Ned logs in it takes him to ned.php

 

is this possible if so any tips hints or ideas on how to go about this ?

 

should i use flat file ? im not wanting to capture details or anything or have a regestar page just as long as i could add them ...

 

Thanks in advace.

 

 

Link to comment
Share on other sites

I would create a .php file, private.php, for example.

 

have 'private.php' check session data for the user-ID, then build the page custom accordingly in PHP.

 

You can pass along the userrname using a querystring, 'private.php?user=John'

 

Then you can use URL Rewrite to fashion it so it pips 'private.php?user=John' when the user requests 'http://www.mypage.com/John'

 

Then finally, after verfying the login information, pull a: header('Location: http://www.mypage.com/$user'); exit;

 

Bryan

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.