Contents

 
Home
PHPRunner 6.1 manual
Prev Page Next Page
 
 

Implementing 'single sign on' feature

 

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.

yellowbulbNote: 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'.

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)