如何从android中的webservice获取sessionid?

时间:2012-06-11 14:26:53

标签: android web-services sessionid

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";
    }
}

我的功能是这个在webservice部分..我需要获取sessionid ..我使用soapobject.I不知道该怎么办。任何建议?提前谢谢你......

0 个答案:

没有答案