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)
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:
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
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
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.
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
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
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
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,
$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
/)
- 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
11 matches
Mail list logo