Re: HTTP authenticate

From: Date: Thu, 05 Oct 2000 10:32:58 +0000
Subject: Re: HTTP authenticate
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18719@lists.php.net to get a copy of this message
Hiya just use a .htaccess file with authtication and the direcorty the file is in will be protected with a password you only have to fill in your password once until you colse the browser Greetz, Wico At 03:15 5-10-00 -0700, David F. Newhall II wrote:
<input type="hidden" name="PHP_AUTH_USER" value="<?=$PHP_AUTH_USER?>"> This should work, as long as you are using php to authenticate, and not .htaccess. -david ----- Original Message ----- From: "AJDIN BRANDIC" <abrandic@coventry.ac.uk> To: <php-general@lists.php.net> Sent: Thursday, October 05, 2000 3:05 AM Subject: [PHP] HTTP authenticate I have a problem and cannot find a solution to it. My client wants to have login boxes (html text/password type) (username,password) on his main page. Once user enters correct details it will take him/her to the protected area. Now I need to authenticate the user for each page in the restricted area. If I use HTTP authenticate (which is in another file and I use "require" to refear to it) then it brings up the windows authentication box which means the user has to login again (not good :(). The client deosn't want me to use cookies (I was goint to create two cookies PHP_AUT_USER and PHP_AUTH_PW). I cannot use sessions since the ISP host doesn't support them. Is there any way I could assign values to PHP_AUT_USER and PHP_AUTH_PW so I don not get the windows username/pass box but just authenticate once through. I realy need this sorted. Thanx, Ajdin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#18719) next »