Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Thanked 0 Times in 0 Posts

    Another Htaccess Question

    hello everyone nice to meetcha,

    Well I was reading the thread sever refreshing about the guy with the problem of updating a pdf file but everytime he visits he gets the old file.

    My problems is that I set up a password protected directory in Cpanel(X version). I would like everytime the person visited they will have to put in their username and password.
    When you first visit the site it asks you for the info. But if you leave and comeback it will take you straight through to the site without asking you for your user name and password again.
    I want it to ask it of them EVERYTIME.

    Whats the code for that Exactly?.... so I can copy and paste and slap it right in there. Please kind sirs and mams

    I know I'm gonna have a lot of htaccess questions. So please be gentle..This is only my first one.

  2. #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Bradford, UK
    Thanked 68 Times in 67 Posts
    Lots of good info about .htaccess here :

    Also the apache docs have good info on authentication

    afaik you will need to do some messing with sessions to do what you're trying to do. The password remains until the browser session resets (usually when you close the browser or are inactive for 20 minutes) Its a nice little feature of our web browsers for the convienience of the user, no-one likes having to put their password in constantly
    Last edited by NancyJ; 08-15-2005 at 04:13 PM.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Thanked 1 Time in 1 Post
    What about Cookie control for not asking username and password next time ?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts