.htaccess & Removing password prompt from new windows

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
JustinK322
Forum Newbie
Posts: 9
Joined: Fri Jul 28, 2006 1:35 pm

.htaccess & Removing password prompt from new windows

Post by JustinK322 »

I have a directory that is protected with this .htaccess file:

Code: Select all

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile "/path/to/.htpasswd"
require valid-user

<Files ~ "\changecoverart.php$">
Order Allow,Deny
Allow from all
</Files>
For the files in the directory, I get the password prompt like I should be. My problem is with the changecoverart.php page and opening it in a new window. To access the changecoverart.php page, another page opens it in a new window and posts a form to it. When this happens, I am reprompted for a password. This is the password prompt that I am trying to remove. If I navigate directly to the changecoverart.php page, there is no password prompt.

Can anyone help me to get rid of the password prompt when opening this page in a new window?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You could have PHP perform the authentication and do away the .htaccess altogether for the most part.
JustinK322
Forum Newbie
Posts: 9
Joined: Fri Jul 28, 2006 1:35 pm

Post by JustinK322 »

The powers above tell me that I must use .htaccess.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Did they give you a reason, or is it more of a "we don't know this mysterious thing called 'PHP powered'"?
JustinK322
Forum Newbie
Posts: 9
Joined: Fri Jul 28, 2006 1:35 pm

Post by JustinK322 »

No, they didn't give a reason; they never do and they don't like to hear mine.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Is it a problem to ask for one? "We don't like change" isn't satisfactory. :)
Post Reply