We help IT Professionals succeed at work.

Login into httaccess Auth through form

Azurewave asked
Last Modified: 2012-08-14
I'm trying to develop a way for my users to login into a protected area, I need htaccess because of the severity of the contents, so I can't have sessions etc.  I also need to use a form since I am using some additional stuff from the form to tie it with a cms.

Anyway the software works fine in FF, but when it comes to IE there is a huge issue.

I've tried serveral things, and nothing seems to work.  Does anyone know if there is a way i can achieve this without having to login through basic auth?  even if it's by using some other programming language other than PHP, or modules?

I just need an additional gateway somewhere that i can just pass the username and password after I am done with all my checks.  Hopefully someone can shed some light on this.
this failed me
echo "<META HTTP-EQUIV=REFRESH CONTENT=\"0; URL=http://$username:$password@www.mydomain.com/restricted/index.html\">";
this also failed me
header("Location: http://$username:$password@www.mydomain.com/restricted/index.html");

Open in new window

Watch Question

Mark GilbertSenior Performance Engineer

Hi KB, I believe that the answer I provided gave the asker a correct answer on this and wasn't aware that the link I provided hadn't helped.  Had I been given any feedback I would have been able to address any issues or concerns.  Additionally, please provide a link to the CS posting so that I can review any comments there.  Thanks.
This one is on us!
(Get your first solution completely free - no credit card required)
Mark GilbertSenior Performance Engineer

Hi Azurewave, I wasn't aware that you had found another solution to this issue and had gone with that instead.  I took no reply on this question as being resolved as I recieve notices on each response.  I have been on EE for a number of years and always find it helpful to know that something has either helped or has not via comments once I've posted a suggested solution, so that I can post additional information or solutions to the problem.  I also invest quite a bit of time and effort in providing the guidance that I do and found it surprising to have a delete notice without any explanation.

For your reference, I wanted to let you know that the help pages also contain many good suggestions on how to close questions, along with what to do if something doesn't work.  Sometimes the answers aren't what you are looking for, and in this case you've had to use a 3rd party solution to augment your existing security solutions.

KB, please delete and refund.


Ah alright, sorry I am still new to EE still trying to get the hang of this kind of thing.  but so far everyone has been very helpful.  Thank you, I will make notable next time I encounter something like this again.  Thanks again.

Closed, 500 points refunded.
Community Support Moderator

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.