Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I've got a bit of a peculiar problem on my site. I'm using a .htaccess and .htpasswd file to protect the root of the site. This works great, but when I try to view a video file on my site, it prompts for the password again. Is there something I can do so the only time a visitor is prompted to login is the first time he loads the page? Thanks! quark

share|improve this question
    
Is the file within the folder you protected, or outside of it ? –  pritaeas Dec 14 '10 at 8:46
    
Have in mind that if you switch from http to https you will have to log in again. –  Ilian Iliev Dec 14 '10 at 9:05

1 Answer 1

By nature HTTP is stateless, which means that you'll be prompted to input the username and password every time you try to get something. However what happens is that your browser sends the username and password every request, so you don't have to fill them in every time. What happens here is that the browser doesn't re-send the information. Technically you're looking at a browser issue.

It might be necessary to use something different than htaccess/htpasswd. Embed the video in a page that uses a different way of authentication?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.