Jump to content

PHP_AUTH_USER and PHP_AUTH_PW Question


jzimmerlin

Recommended Posts

Yes, but that will only work for the script those variables where set in. It will not be carried over to the next page when you go to echo $_SERVER['PHP_AUTH_USER'];

The server variables are defined by the server its self when the script is being process. So any work you did on the server variables will be lost the next time you go to use them.
OK... here's what I'm trying to do, maybe you can tell me if there is some other way to do it.

I need to protect the content on my web site so that only people that login using an HTML form can download pictures, videos, etc in specific directories.  Any thoughts?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.