[PHP] HTTP authentication logout

2001-07-03 Thread David A Dickson
I am using HTTP authentication to restrict access to certain pages and I want to add a logout option so that users must reauthenticate before being able to veiw the pages again. Here is the code I'm using to authenticate: ? /* Test for username/password */ if(($PHP_AUTH_USER == $username)

Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Don Read
On 07-May-01 Mauricio Souza Lima wrote: snip And you have to inform the user to clean the password field, click ok, then the pop-up will open again, then user click in cancel. I just know that way to do. If anyone know another way, Postit! create a tmp directory logoff.php3:

Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Mauricio Souza Lima
Cool, you have found another way! So the realm make diference? A user loged in a realm isn't the same in other realm? Very cool... Explain better your solution to us. Regards, Don Read wrote: On 07-May-01 Mauricio Souza Lima wrote: snip And you have to inform the user to clean the

Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Don Read
On 08-May-01 Mauricio Souza Lima wrote: Cool, you have found another way! So the realm make diference? A user loged in a realm isn't the same in other realm? Very cool... Not quite, the realm is a string to present to the login dialog box it has no effect on the credentials in this

Re: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Martín Marqués
On Mar 08 May 2001 02:07, you wrote: Never tried it though...but can you try to empty or unset the $PHP_AUTH_USER/PWD ? This doesn't work, thats why I use a login html page and sessions. :-) Saludos... :-) -- El mejor sistema operativo es aquel que te da de comer. Cuida tu dieta.

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Robert Covell
Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Martín Marqués [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 2:13 AM To: elias Cc: [EMAIL PROTECTED] Subject: Re: [PHP] HTTP authentication : logout!!! On Mar 08 May

[PHP] HTTP authentication : logout!!!

2001-05-07 Thread Thomas Edison Jr.
i'm using http authentication for my php pages (members area). Once you login correctly, than you can access anypage as the authentication box doesn't pop-up. Now i woul like to create a logout link after clicking on which, whenever you click on a page using auth, the auth box should pop-up

Re: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread elias
Never tried it though...but can you try to empty or unset the $PHP_AUTH_USER/PWD ? -elias http://www.eassoft.cjb.net Thomas Edison Jr. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm using http authentication for my php pages (members area). Once you login

Re: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Mauricio Souza Lima
It dont work, what you have to do is that: In the logout.php: -- ? header( 'WWW-Authenticate: Basic realm=Private'); header( 'HTTP/1.0 401 Unauthorized' ); ? htmlbody Logout Sucessful /body/html -- And you have to inform the user to clean the password field, click ok,

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Matt Schroebel
$PHP_AUTH_USER = ; $PHP_AUTH_PW = ; Ought to do it. From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 8:39 AM To: [EMAIL PROTECTED] Subject: [PHP] HTTP authentication : logout!!! Now i woul like to create a logout link after clicking on which, whenever you

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread John Vanderbeck
/) - GameDesign, the industry source for game design and development issues -Original Message- From: Robert Covell [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 9:14 AM To: Martín Marqués; elias Cc: [EMAIL PROTECTED] Subject: RE: [PHP] HTTP authentication : logout!!! I must