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 have a page that allows a user to login, provided their username and
password files from a previous form, match an entry in a MySQL database.
All fairly standard.
How can I get that to talk to $PHP_AUTH_USER?
When I use an .htaccess file to a directory that's protected, I don't want
the user
I just built a new server and loaded with RH8. I copied my php files over
to the new apache server and modified the links. I couldn't find any
mention of php in the httpd.conf so I figured it must me compiled into httpd
so I tested it. The PHP files load, however, the php_auth_user and
anyone can help me what is the script for log out
WWW-authenticate
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
WWW
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
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
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 it
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
Hello,
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
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
Filling these variables seems to work, but what is the header to send for
a valid login? I can't seem to suppress the dialog. I have an HTML form
which calls login.php.
When I access the script through a redirection in the login, I don't want
to see the prompt.
There seems to be a lot of
hi
can I use $PHP_AUTH_USER
as a global variable?
I'm having a hard time with it in my other pages.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
22 matches
Mail list logo