Follow my login code to webservice soap
if (isset($_POST["action"]) && $_POST["action"] == "login") {
$soapClient = new SoapClient(WEST_SOAP_WSDL,
array("trace" => WEST_SOAP_TRACE, "login" => WEST_SOAP_LOGIN, "password" => WEST_SOAP_PASS));
try {
$clienteId = $soapClient->loginAuth($_POST["username"]);
} catch (Exception $e) {
print_r($e);
}
if ($clienteId) {
session_regenerate_id(TRUE);
$_SESSION["auth"]["id"] = $clienteId;
$_SESSION["auth"]["username"] = $_POST["username"];
try {
$_SESSION['cliente'] = serialize($soapClient->getClientDataById($clienteId));
} catch (Exception $e) {
print_r($e);
}
How could I Restrict Access to my Subscriber Panel in php in the statuses below? :
inativo
cancelado
serasa