Received: from bush.rutgersinsurance.com (rutgersinsurance.com [38.138.71.194]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3RJNZ372658 for ; Fri, 27 Apr 2001 15:23:35 -0400 (EDT) (envelope-from aalang@rutgersinsurance.com) Received: from 6014cwpza006 (adam.rutgersinsurance.com [10.10.10.51]) by bush.rutgersinsurance.com (8.9.3/8.9.3) with SMTP id PAA10691 for ; Fri, 27 Apr 2001 15:36:43 -0400 Message-ID: <007e01c0cf4f$f30793e0$330a0a0a@rutgersinsurance.com> From: "Adam Lang" To: "PgSQL-PHP" References: <2961768953.20010427124613@harrison.org> Subject: Re: HTTP authentication Date: Fri, 27 Apr 2001 15:26:25 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200104/43 X-Sequence-Number: 296 You are correct. I was keeping it simple since his original question was merely on the "logout" button. Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Jason k Larson" To: "PgSQL-PHP" Sent: Friday, April 27, 2001 2:46 PM Subject: Re: [PHP] HTTP authentication > This is all good but needs to be dealing with the password as a > hash/digest not the real clear text password. I would use SHA1 > (SHA-160) or MD5. > > Jason k Larson > Web Developer++ > > > AL> The way i do it is have a separate table in the database that keeps track of > AL> users and passwords for the application. > > AL> I use the WWW-Authenticate header to get $PHP_AUTH_USER and $PHP_AUTH_PW > > AL> I run them through the table using a select query. If I come back with a > AL> match, I set a variable, $auth, equal to true. > > AL> If $auth is equal to true, they can perform whatever functions in the page I > AL> have. > > AL> I don't have a log out button, but all I would probably do would be set > AL> $auth = false and unset the $PHP... variables. > > AL> Adam Lang > AL> Systems Engineer > AL> Rutgers Casualty Insurance Company > AL> http://www.rutgersinsurance.com > AL> ----- Original Message ----- > AL> From: "Christian Marschalek" > AL> To: "'Adam Lang'" > AL> Cc: "[PHP] PostgreSQL" > AL> Sent: Friday, April 27, 2001 11:43 AM > AL> Subject: RE: [PHP] HTTP authentication > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly