All you need is to add this into .htaccess

php_value auto_prepend auth.php

when any file under that directory is being accessed, auth.php will come on
top, there - make your own script to pass-protect yourself..



Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: Kyutums [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 10:28 AM
To: Php-General
Subject: [PHP] Sessions to password protect directory?


Good day to all!

Before, I was able to password protect html and php files via a username
and passowrd script which used sessions. Now, I need to password protect
a folder (via .htaccess) that has images (for a family album thing). Can
this be done via sessions (or even cookies)? I don't want to
authenticate the user via forms and not via the pop-up that a browser
presents when using an .htaccess file. Any scripts that already do this
(password protect a directory)?

Thanks for all your help.

- Kyutums


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to