N
N
name_a2015-03-26 13:45:56
PHP
name_a, 2015-03-26 13:45:56

PHP + IIS + Windows Authentication. How to find out if a user is logged in using PHP?

There is a raised IIS with two sites. One accepts requests to an external IP (Internet). The second one is on the internal IP (intranet).
The intranet site has Windows Authentication deployed.
How can you make sure that the user authentication on the site is successful? Is it safe to use server variables [AUTH_USER], [AUTH_TYPE]?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xtalen, 2015-03-26
@xom9lk

and so:
$user = $_SERVER['LOGON_USER'];
echo "$user";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question