...

Another Htaccess Question

NETGEEK
08-15-2005, 02:50 PM
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.

NancyJ
08-15-2005, 03:06 PM
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 ;)

iota
08-15-2005, 03:32 PM
What about Cookie control for not asking username and password next time ?:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum