title: query session on parse server always got invalid session token message
body: <p>I have some code in the cloud to query the sessions on parse-server. The code works fine on the parse.com but it always got the <code>"invalid session token"</code> message when I call the same code on the parse-server. Here is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Parse.Cloud.define("getSessionCount", function(request, response) {
      if (request.user == null) {
          reportError("deleteAllOtherSessions", "userCheck", 0);
          response.error("invalid user");
          return
      }
  
      //the user that sends the request
      //var currentUser = request.user;
      //console.log(currentUser);
      //send from client 
      var currentUserInstallationId = request.params.installationId;
      var userSessionQuery = new Parse.Query(Parse.Session);  //session query can only return the session related to the user
      //all sessions of this user
      //userSessionQuery.equalTo('user', currentUser);
      //except the session for this installation -&gt; to not log the request performing user out
      userSessionQuery.notEqualTo('installationId', currentUserInstallationId);
  
      userSessionQuery.find({
          success: function(results) {
              response.success(results.length);
          }, 
          error: function(err) {
              //TODO: Handle error
              response.error(err);
          }
      });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>Anyone has the same issue or know how to solve this??</p>