1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Is there any information on how to make the PHP3 prompt for a userID and password and authenticate the user.

    Any information is appreciated

    Suresh Kumar
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I would suggest taking a look at PHPLib. It allows for user authentication based on password, permissions and other flexible methods. It's not easy to implement, but it's worth it.


    Otherwise, for a less flexible solution,
    you can integrate PHP with Apache's standard HTTP authentication (if running as Apache module).

  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Thank you jpenix for the info.
    The PHPLIB document is pretty straight forward and I was able install PHPLIB in minutes and the samples are working.

    ...now I need more samples I guess, because the my homepage is prompting to enter the password everytime i refresh or
    give a search command. (Yes, Navigator is setup to accept cookies).

    Can I get some more samples for this PHPLIB


    Suresh Kumar

  6. #4
  7. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    How to make PHPLIB remember and display my user-id when I login the next time?
    "Accept Cookie" is enabled in Netscape.

    (I have fixed the problem of user id password prompt by enabling the cookies, I set it incorrectly to accept cookies from certaing sites only before)

    Any Idea?

    Suresh Kumar

  8. #5
  9. No Profile Picture
    Projecto EINet
    Devshed Newbie (0 - 499 posts)
    After passing the password you may use something like:

    Header("Location: pagein.php3?ID=$u&PW=$p");


    Header("Location: pagein.php3?UID=$uid");

    Redirecting to pagein.php3 with Username and Password or even sending a UserID.

    Pagein.php3 shall create a new page with that results in an input hidden something like this:

    <INPUT NAME="UID" VALUE="<? echo "$uid" ?>">

    when you refresh the pagein.php3 it contains the $uid and you will process it with no problem.

    I've used something like it to pass values of variables thru 3 input data screens in one script and to another script without using "cookies". You know. You shouldn't use "cookies" because some people doesn't like them at all and if your script uses it it may not work.

    Another system is to use the IP address and
    keep it somewhere in your system. Then test if they are trying to get in again.

    It wont work with Proxy Servers. The best way is to use both and "cookies" too.

    See www.php3.net for samples in Advertising Systems. They usually track all this.

    Best regards.

    Projecto EINet

Similar Threads

  1. ssh-keygen password prompt
    By csross in forum UNIX Help
    Replies: 3
    Last Post: May 19th, 2004, 10:10 AM
  2. password generation on user auth.
    By nacho_c in forum PHP Development
    Replies: 14
    Last Post: January 16th, 2004, 04:55 AM
  3. Make webpage prompt for password
    By andyg1 in forum HTML Programming
    Replies: 2
    Last Post: January 9th, 2004, 07:25 AM
  4. want password protect?
    By CaptinKirk in forum Beginner Programming
    Replies: 4
    Last Post: December 18th, 2003, 12:00 PM
  5. Useradd skip password prompt
    By stunned in forum Linux Help
    Replies: 2
    Last Post: September 29th, 2003, 09:16 PM

IMN logo majestic logo threadwatch logo seochat tools logo