1
function Login($Email, $Password) {
    global $DBConnection;
    if ((isset($UserName) && !empty($UserName)) || (isset($Password) && !empty($Password))) {
        $Email = addslashes(htmlspecialchars(strip_tags($Email)));
        if ($DBConnection->row("select * from db_Users where Users_Email = '".$Email."' and Users_Password = '".$Password."'") <= 0) {
            return "FAILED";
        }
        else {
            $UserLogin = $DBConnection->object("select * from db_Users where Users_Email = '".$Email."' and Users_Password = '".$Password."'");
            $_SESSION['UserLogin'] = true;
            $_SESSION['UserID'] = $UserLogin->Users_ID;
            return "SUCCESS";
        }
    }
    else {
        return "ERROR";
    }
}

我的功能是在 web 服务部分..我需要获取 sessionid ..我正在使用soapobject.我不知道该怎么做..有什么建议吗?先感谢您...

4

0 回答 0