On Fri, 6 Jun 2003 11:36:51 +0100, [EMAIL PROTECTED]
wrote:
How can I get that to talk to $PHP_AUTH_USER?
I'm not sure this is exactly what you want (actually, I'm pretty sure
this is coming at it from the opposite end), but here is a way I used
it for a very simple / low security situation.
I
I'm afraid you're going to have to be more specific than that my friend.
- Original Message -
From: Hendråwan Rinäldi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 7:43 PM
Subject: [PHP] PHP_AUTH_USER
anyone can help me what is the script for log out
From: Hendråwan Rinäldi [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 5:44 AM
Subject: [PHP] PHP_AUTH_USER
anyone can help me what is the script for log out
WWW-authenticate
You can't log out of http authentication. Close the browser is it. Not very secure,
eh. Use a
You can't log out of http authentication. Close the browser is it. Not
very secure, eh. Use a session based login method if you need logout
function.
Why not? Sending this to the client should do the job:
header('WWW-Authenticate: Basic realm=My Realm');
header('HTTP/1.0 401
From: Stas Maximov [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 8:02 AM
To: Matt Schroebel
Cc: PHP General
Subject: Re: [PHP] PHP_AUTH_USER
You can't log out of http authentication. Close the
browser is it. Not
very secure, eh. Use a session based login method
Yes, Matt, you were right about tracking the authorized state with a
session. I actually thought about same thing: keeping a variable somewhere
which will help to decide whether to send those Authenticate headers or
not - just didn't realize you meant the same thing. :)
And a little excerpt from
- Original Message -
From: Liam MacKenzie [EMAIL PROTECTED]
To: Hendråwan Rinäldi [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 4:49 PM
Subject: Re: [PHP] PHP_AUTH_USER
I'm afraid you're going to have to be more specific than that my friend.
every body or my
I have a bunch of pages on my site inside an apache .htaccess protected
directory. After visitors have logged in I am on part of my site I need to
find out which user it is that has logged in. I thought this information
was
stored in the $PHP_AUTH_USER variable, but when I print this variable
Correction Redhat7 :-) Got it working thanks for all the help!
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 9:36 AM
To: Fifield, Mike; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP_AUTH_USER
I have a bunch of pages on my site inside
. Holmes' [EMAIL PROTECTED]; Fifield, Mike
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 12:19 PM
Subject: RE: [PHP] PHP_AUTH_USER
Correction Redhat7 :-) Got it working thanks for all the help!
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED
W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 10:48 AM
To: Fifield, Mike
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP_AUTH_USER
And the solution was? remember, other people actually search the archives
before they post, so giving the solution to your problem will help those
Hello:
I have a bunch of pages on my site inside an apache .htaccess protected
directory. After visitors have logged in I am on part of my site I need to
find out which user it is that has logged in. I thought this information
was
stored in the $PHP_AUTH_USER variable, but when I print this
I have a bunch of pages on my site inside an apache .htaccess protected
directory. After visitors have logged in I am on part of my site I need to
find out which user it is that has logged in. I thought this
information was
stored in the $PHP_AUTH_USER variable, but when I print this
you
Set a Cookie then you can pull it out that way. PHP_Auth is based upon
Cookies from what I was able to figure out.
Chris
- Original Message -
From: Fifield, Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 9:59 AM
Subject: [PHP] PHP_AUTH_USER
I have a bunch
I have trouble unseting the values of $PHP_AUTH_USER and
$PHP_AUTH_PW. I use
the WWW-Authenticate via header() to authorize the user when accessing the
page. But when the user logs out, values in $PHP_AUTH_USER and PW seem to
remain and the user isn't asked again to authorize till a new
15 matches
Mail list logo