Forum Moderators: phranque

Message Too Old, No Replies

htaccess causing username/pw prompt TWICE in Firefox

         

shaxpir

12:35 am on Aug 4, 2009 (gmt 0)

10+ Year Member



I have a passworded directory using .htaccess. The directory contains .mov vids and the html pages in which the vids are embedded. I use the qtsrcdontusebrowser parameter to prevent users from downloading the vids.

Problem -- in Firefox only -- is that the users are prompted TWICE for their passwords -- once when entering the site (working as designed), but then again when they load a page with an embedded video; they have to log in again for the video to play. Doesn't happen with MSIE or Safari.

Any fix for this?

jdMorgan

2:52 pm on Aug 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd suggest using the "Live HTTP Headers" add-on for Firefox/Mozilla browsers to examine the transactions between your browser and your server. Look for 'differences' in the initial and subsequent page request and authorization-required responses. Note whether the domain or subdomain changes, for example, or if you see any other differences in what the browser sends and what the server replies with.

Unfortunately, there is no similar plug-in for IE, so results may be inconclusive. I suppose you could also try an on-line server headers checker like WannaBrowser, but these may give unreliable results, especially when authentication/authorization is involved.

Also, if you change your code, be sure to completely flush your browser cache (delete Temporary Internet Files). Otherwise, your browser(s) may show you previously-cached pages and server responses.

Jim

shaxpir

11:42 pm on Aug 4, 2009 (gmt 0)

10+ Year Member



Thanks, Jim. I'm gonna play with my code a little, too. If I get interesting results with some <FilesMatch> directives, I'll post.