title: angular $http.post returns code 302
body: <p>I have the following php:</p>
  
  <pre><code>    public function getLoggedInUser()
  {
      if($this-&gt;isAjax())
      {
          exit (json_encode($_SESSION['User']));
      }
  }
  </code></pre>
  
  <p>And the following angular:</p>
  
  <pre><code>    userModule.controller('UserController', [ '$http', function($http)
  {
      var userCtrl = this;
      this.user = {};
  
      $http.post('/User/getLoggedInUser', {request: 'ajax'}).success(function(data)
      {
         userCtrl.user = data;
      });
  }]);
  </code></pre>
  
  <p>i get code 302 but no result is found and the php script is not running. </p>
  
  <p>What am i doing wrong?</p>
  
  <p><strong>Update</strong></p>
  
  <p>After debugging i the core of my PHP i can see that the variable <code>request</code> is not send to the server.</p>
  
  <p>Why isnt it?</p>