Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
March 15, 2010, 05:05:12 PM

Pages: [1]   Go Down
  Print  
Author Topic: password protected directories  (Read 242 times)
stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« on: November 11, 2008, 06:30:47 AM »

I have chosen to assign passwords to my peeps, and have recently added a bunch of people.
I was on the page where you assign passwords, and there was a box above to click if you wanted
the passwords to be required.

I clicked, and saved.

Now it asks for the password as it should, but it also asks for it again if you want to view the gallery (click on the gallery link).  How can I eliminate that second request - very annoying!

Thanks
Logged
stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« Reply #1 on: November 11, 2008, 09:49:23 PM »

This question must be confusing because I've always been answered very quickly.

I'm not sure what to add - but I did remove the checkmark, and the site was totally open, no password required.

When I put the checkmark back, it asks for a password to enter, and then after you are there, and click the gallery link, it asks for it again.

Logged
Mitch
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 12696


Business Development Specialist at Lunarpages


WWW
« Reply #2 on: November 12, 2008, 05:25:48 AM »

Try contacting support@lunarpages.com and our support crew can check and see if they can re-create the problem to see what might be causing it.
Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4595



« Reply #3 on: November 12, 2008, 05:26:37 AM »

Let me see if I understand this. You have set up a password-protected directory with a number of authorized users. Correct? They go in to this directory and are asked for their ID and password. So far, so good? They go in a second time to the same directory (or one under it), and are again asked to sign in?

By any chance, do these users have their browsers configured not to permit cookies? I think the password permission system uses a cookie to remember that you've already signed in once for this session, and don't need to be asked again. Try enabling cookies that last until the end of the session (not permanent or long-term cookies).
Logged

stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« Reply #4 on: November 12, 2008, 10:09:24 AM »

Not quite.  I have a number of files that are for downloads - no problem.  I have another link that opens a gallery of photos.  That link, causes a second request.

Logged
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4595



« Reply #5 on: November 13, 2008, 05:15:02 AM »

Hmm. You're using password-protected directories through cPanel, and not ID/password assigned through some application such as SMF? Let's say the password-protection is on directory protected/. Where are the files for download, and where is the photo gallery, in relation to protected/? What is the exact sequence of operations, and you're positive that both times you're getting the same browser prompt for ID and password? It's not one prompt from the browser for the directory password and the other a (different) prompt from the gallery application? How different are the URLs that you're getting to the files or gallery -- say, coming in under different domain names? Finally, I repeat my question about cookies -- do you have cookies enabled (at a minimum, cookies that expire at the end of the session)?
Logged

stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« Reply #6 on: November 13, 2008, 03:42:59 PM »

Yes, it is all through cpanl - I have no other software for passwords.

The downloadable files are in the public_html folder.

The photo gallery is in a jpegs folder in that same public_html folder.  The photoshop program
that created the gallery created  another index.htm file that is in that folder.

Would that second index.htm file be causing the problem? 


First password request takes you to:   http://www.stockthestore.com/
second password request takes you to:  http://stockthestore.com/jpegs/index.htm

I am set up to accept all cookies.
Logged
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4595



« Reply #7 on: November 14, 2008, 05:07:54 AM »

I think stockthestore.com and www.stockthestore.com are being treated as two different domain names, for the purpose of password protection. It may be that they are resulting in two different cookies being used. If you can change the links to match each other (use the same name), that might work. Otherwise, you might be able to redirect the URL (in public_html/.htaccess) by adding www. to one address or deleting it from the other, to make them consistent.
Logged

stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« Reply #8 on: November 14, 2008, 06:53:17 AM »

I used Adobe Photoshop's "create web photo gallery" function to create my gallery.

There is an index.htm file in the created folder.  It appears as a page of thumbnails with no mention of an url.  I put it inside the folder of jpegs due to the fact that my index.htm file for the entire page would have been overwritten.   My full-page index.html only says:
<p><a href="http://stockthestore.com/jpegs/index.htm">Go to the Gallery</a></p>

Are you saying to make it into <p><a href="http://www.stockthestore.com/jpegs/index.htm">Go to the Gallery</a></p>Huh?

Wouldn't this occupy the same "space" as my webpage?

  Confused
Logged
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4595



« Reply #9 on: November 14, 2008, 09:52:15 AM »

Are you saying to make it into <p><a href="http://www.stockthestore.com/jpegs/index.htm">Go to the Gallery</a></p>????

It's worth a try. The idea is to have everyone come in to your site through the same domain, so that there will be only one cookie instead of two (for the password access). If it doesn't work, you can always back out the change and try something else.

Don't forget to clear out your cookies (at least, the two for your site) and your browser cache after making the change.
Logged

stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« Reply #10 on: November 19, 2008, 07:00:53 AM »

I do not know how to do what you are suggesting.

The web gallery is created by photoshop in a folder.  I kept it in the folder (named jpegs) because
there was an index.htm file in there that would have overwritten the main index.htm file in my public_html folder.  I did not know how to handle it other than keep the folder intact.

The url I have refers to stockthestore.com/jpegs/index.htm

How would I change this situation?

Thank you Confused
Logged
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4595



« Reply #11 on: November 19, 2008, 03:27:35 PM »

If your public_html/ directory is password protected, that password will apply to your entire site. Do you want to have the password apply only to part of the site? If so, you will need to remove the password protection from public_html/ (or "/") and create it for "deeper" directories, such as public_html/jpegs/ (or "/jpegs").

While stockthestore.com and www.stockthestore.com are just different names for the same site (your public_html/ or "/" directory), as far as I know, the password protection considers them to be different (you get passwords stored in different session cookies for the two names). If you have a public_html/index.html that points to the jpegs directory, you can just edit that file to ...href="http://www.stockthestore.com/jpegs... or even just ...href="/jpegs.... Feel free to edit any index.htm or index.html file -- you can use cPanel > File Manager, navigate to the directory the file is in, click on the file name, click on "edit the file" (on the right side of the screen). Just edit index.* files until you end up with consistent site names (all with or all without "www."). You don't need the site name if you're pointing to a directory and file on the same site -- just give /jpegs/index.htm or whatever.
Logged

stock40
Spacescooter Operator
*****
Offline Offline

Posts: 46


« Reply #12 on: November 19, 2008, 04:53:37 PM »

It's Fixed Banana Dancer


Thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: