title: PHP soap login auth
body: <p>Following my code webservice soap:</p>
  
  <pre><code>   if (isset($_POST["action"]) &amp;&amp; $_POST["action"] == "login") {
  $soapClient = new SoapClient(WEST_SOAP_WSDL,
      array("trace" =&gt; WEST_SOAP_TRACE, "login" =&gt; WEST_SOAP_LOGIN, "password" =&gt; WEST_SOAP_PASS));
  
  try {
      $clienteId = $soapClient-&gt;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-&gt;getClientDataById($clienteId));
      } catch (Exception $e) {
       print_r($e);
      }
  </code></pre>
  
  <p>How could I Restrict access to my php in subscriber panel in status below ? :</p>
  
  <pre><code>        inactive
          canceled
  </code></pre>