Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-15-2005, 02:50 PM   PM User | #1
NETGEEK
New to the CF scene

 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
NETGEEK is an unknown quantity at this point
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.
NETGEEK is offline   Reply With Quote
Old 08-15-2005, 03:06 PM   PM User | #2
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Lots of good info about .htaccess here :
http://www.javascriptkit.com/howto/htaccess3.shtml

Also the apache docs have good info on authentication
http://httpd.apache.org/docs/1.3/howto/auth.html

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
__________________
http://www.hazelryan.co.uk

Last edited by NancyJ; 08-15-2005 at 03:13 PM..
NancyJ is offline   Reply With Quote
Old 08-15-2005, 03:32 PM   PM User | #3
iota
Registered User

 
Join Date: Oct 2004
Posts: 592
Thanks: 0
Thanked 1 Time in 1 Post
iota is an unknown quantity at this point
What about Cookie control for not asking username and password next time ?
iota is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:41 AM.


Advertisement
Log in to turn off these ads.