![]() |
Alexey admin 4/21/2008 |
Kim, |
S
|
spintz 4/21/2008 |
ASPRunner is not required for SSO use. |
K
|
kklh author 4/22/2008 |
ASPRunner is not required for SSO use. Try $_SERVER['LOGON_USER'] instead of Request.ServerVariables("LOGON_USER") And if that doesn't work, do a print_r( $_SERVER ), and look for the SSO "username" key,value pair. A better print_r (easier to read) would be - echo nl2br( print_r( $_SERVER, true ) ); If you can't find it with this, let me know. I already have PHPRunner working with SSO and can help you more. Stick with PHP, ASP is evil!
|
S
|
spintz 4/22/2008 |
Why are you set on finding a LOGON_USER var? The variable I get from our HTTP headers is REMOTE_USER. |
J
|
Jane 4/22/2008 |
Kim, if ($_SERVER["LOGON_USER")) { $_SESSION["UserID"] = $_SERVER["LOGON_USER"); $_SESSION["AccessLevel"] = ACCESS_LEVEL_USER; header("Location: menu.php"); exit(); } |
K
|
kklh author 4/22/2008 |
Kim, you've mixed PHP and ASP code. Try to use this code in the PHPRunner:
|
J
|
Jane 4/22/2008 |
You can check list of all $_SERVER variables in the PHP manual: |
K
|
kklh author 4/23/2008 |
You can check list of all $_SERVER variables in the PHP manual: http://php.net/manual/en/reserved.variables.php
|
K
|
kklh author 4/23/2008 |
Hi It works now, should just use this variable for userid if ($GLOBALS['UserID']) { $_SESSION["UserID"] = ($GLOBALS['UserID']); $_SESSION["AccessLevel"] = ACCESS_LEVEL_USER; header("Location: nybrugere_list.php"); exit(); } regs. KIm.
|
S
|
spintz 4/23/2008 |
Again, you need to talk to your network/web administrator and find out which SSO system you're using and how it's configured. You need to find out what specific variable is being set in the HTTP Headers. It seems you're just taking shots in the dark at what it should be. |