[Phpip-support] Authentication Problems when migration PHPIP to IIS
Brought to you by:
trilexcom
From: <Mar...@pr...> - 2004-06-25 13:05:14
|
Hi there, After migrating to IIS, I have been encountering problems with the authentication levels after logging in. On the IIS server, PHP is configured to disallow global registers so I had to make a couple of changes in lines 55-64 of results.php: if (isset ($_POST['username']) && ($_POST['passwd'])) // they have just tried logging in { //$valid_user = $username; $_SESSION['valid_user'] = $username; $_SESSION['auth_level']; } else { With these alterations, I can login fine but neither the username is displayed under "logged in as" nor are the authorization levels properly set. I seem to have only read access despite the fact that my user has admin rights in the user table. I think I also need to set some Superglobals in user_auth_fns.php but I can't figure out how. I've tried making following changes in the functions login and check_valid_user: function login($username, $password) ... $GLOBALS['auth_level']; $auth_level=$row[access_level]; $_SESSION['auth_level']; ... function check_valid_user() ... $GLOBALS['valid_user']; if (isset($_SESSION['valid_user'])) { echo "<b> Logged in:</b><i><font color=blue> $valid_user</font></i>"; echo "<br>"; echo "<br>"; } However, after making these changes I can no longer login and get the error "You do not appear to be logged on. This could be due to your Session timing out." Anyway if anyone can help that would be great. Thanks, Mark Mark Dayao System Consultant Premiere Fernsehen GmbH & Co. KG Am Stadtrand 52 D-22047 Hamburg |