username; $role = $result->role; if( strcmp($username,"") && strcmp($role,"") ) { // // Save last click time for inactivity timeout // $lastClick = time(); $_SESSION['lastclick'] = $lastClick; // // set a hash of the user name // $_SESSION['login'] =$username.','.md5($username.$secret_word); //error_log("LOGIN HASH COOKE = ".print_r($_SESSION['login'], true)); $_SESSION['user'] = $result; header('location:'.HOME_VIEW_PAGE ); } else { // This really shouldn't happen, but if it does just go back to the login // screen. header('location:'.LOGIN_PAGE ); } } // errorCode != 0 displays an error in the HTML below } ?>
|
|