|
PHPRunner allows you to use integrated windows authentication so
that the users once they login into the Windows domain do not have
to log into the PHPRunner application (applies to PHP applications
running on Internet Information Server). For this purpose you can
use BeforeProcess event of the
Login page.
Note: Change the values listed in
red to match your specific needs.
function BeforeProcessLogin($conn)
{
if ($_SERVER["REMOTE_USER"))
{
$_SESSION["UserID"] = $_SERVER["REMOTE_USER");
$_SESSION["AccessLevel"] = ACCESS_LEVEL_USER;
header("Location: menu.php");
exit();
}
}
|
This feature is also know as 'single login' or 'Windows
authentication'.
|