Ryan Panning - 2007-06-13

Is there a way to make the login optional? I'm just trying to get login info if it's available. Here is what I'm looking for:

- If the users is logged into a local domain already, pass the login info to the server
- If not, just don't pass anything to the server and DON'T prompt for a login either

The reason being, I would like to script PHP to detect if a user is already logged in. If so, set it as though that user has already logged into the Website. If NOT, I'll display a Web based prompt for them to login if they decide to.

if (isset($_SERVER['REMOTE_USER'])) {
// consider them logged in
} else {
// display login HTML form (NOT browser prompt)
}