Jump to content

Recommended Posts

Hello everyone- I sure hope Im posting in the right section ...

Anyways; I was really hoping someone could help me out with this. We are developing a website to showcase work for an organization, and we have hit a little road bump with authentication ... this organization already has a central database with usernames and passwords that are used throughout the system. The people who access the website will also need to be members of this organization, so we would like to obviously access this database directly so that people dont need to reregister usernames .

After logging in, we then store information to that USERNAME in our own database. So, for example, if abc1234 were to use our showcase website, we would first want abc1234 to log in to gain access to the site (verifying that login with the central database) and then when abc1234 flagged something, we would have our own database saying "abc1234 flagged xxx"

Make sense so far? hopefully ... anyways ... heres the issue

The organization has said the only way they would probably allow us to do "username verification" is using a .htaccess file. Using a .htaccess file it is VERY easy to check with the central database to allow or disallow access to certain features.

My question ends up being this: as far as I know, to do a username/password check with .htaccess, all I have ever seen is that sort of ... secured directory thing where a window pops up and asks for both the username and password ... but since we need to do MORE with the username, that pop-up window is insufficient ... is there any way for us to allow the user to enter username and password via two forms on a webpage and use PHP (or any technology, if anyone out there is familiar with one) that allows us to then VERIFY that the user has logged in appropriately with the htaccess file and continue using that username value as a session variable to use it in our local database?

... I sure hope that made sense  :D

Thank you for any help you can offer
Link to comment
https://forums.phpfreaks.com/topic/33475-htaccess-verification-and-php/
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.