title: Get incoming webhook of woocommerce
body: <p>I'm trying to receive a JSON of a woocommerce webhook in a tracker.php to manipulate the content, but something is wrong because it doesn't save anything in $_SESSION. This is my code ....</p>
  
  <pre><code>(!isset($_SESSION))? session_start() : null;
  
  if($json = json_decode(file_get_contents("php://input"), true)) {
      $data = json_decode($json, true);
      $_SESSION["json"] = $data;
  } else {
      var_dump($_SESSION["json"]);
  }
  </code></pre>
  
  <p>tested the webhook with <a href="http://requestbin.fullcontact.com/" rel="nofollow noreferrer">http://requestbin.fullcontact.com/</a> and received the content. here a capture</p>
  
  <p><a href="https://i.stack.imgur.com/Q1dhM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q1dhM.png" alt="enter image description here"></a></p>