Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Location
    United Kingdom / England
    Posts
    557

    * Just Password to Access page - (password per page/folder)

    Hi guys i have seen many tutorials on how to create a password protected page with username and password for php.

    But i need to create many passwords for many users. The idea is when each user logs in they go and see their profile pages so for example...

    www.example.com/user1

    When the user visit their own page (user1) they are prompted for a password before they can go any further. Only once they have put in a password they are able to access their section only.

    So...

    The user entering his password into his page will only access his profile and nobody elses. Each user will have their own page www.example.com/user1 www.example.com/user2 www.example.com/user3 etc

    Is there any way to get the database to check which password was used and where to redirect the user giving them access to their pages only? Since the users will have their own pages can there be something on their page to redirect them if the password they've entered is correct?

    I hope i've explained this thoroughly, your help would be much appreciated.

    Cheers

    P.S: I really dont want to use javascript.
    Kayz

  2. You can do this using PHP. I suggest you look into a few tutorials on creating a database driven authentication system.

    Using this method then you would have 1 URL example.com/user.php however they would be served their own profile page based on their login name/session data i.e. the user page would do a lookup in the data base like: SELECT * FROM profiles WHERE username=$currently_loggedin_user;



    I hope this is of some help
    Regards,
    RH.

Similar Threads

  1. How do I create password-protected page
    By paid2surf in forum Web Design and Content
    Replies: 4
    Last Post: 03-18-2005, 03:48 PM
  2. password protect page
    By DDT in forum Web Design and Content
    Replies: 7
    Last Post: 11-19-2003, 04:40 PM
  3. password a page
    By dtjames in forum Hosting Software and Control Panels
    Replies: 8
    Last Post: 11-19-2002, 05:24 AM
  4. Front Page Password Change.
    By joubarani in forum Dedicated Server
    Replies: 4
    Last Post: 07-14-2002, 03:35 PM
  5. login/password on main page?
    By Synax in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 06-24-2002, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •