Jump to content

Reading Username/Password


TapeGun007
Go to solution Solved by TapeGun007,

Recommended Posts

Ok, so I setup up a file .htaccess that points to my .htpasswds file in a secure location.

 

When a user tries to enter into a specific directory, it is password protected and prompts a box with a username and password.  Is there any way that I can read this username and password with php?

 

I'm not asking you to write code for me, but you if have an example or a page I can read, I would love to see how this is done (if possible).  Depending on the username, it would direct them to the correct folder with their files.

 

Or maybe I'm going about this the wrong way altogether?

 

Thanks.

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.