title: Redirecting to another page without sending any value in query string
body: <p>I'm trying to perform user verification when the user logs in for the first time. If the user is not verified already then i send its <code>userid</code> from  the code  to call back method
  and in the callback I redirect it to another page using</p>
  
  <pre><code>(window.location.href = "/verifyuser?id=" + response.userId)
  </code></pre>
  
  <p>however i do not want it this way. instead i would like to do an ajax call to the url with the value. i don't want the userId to be visible in the url.
  I tried using</p>
  
  <pre><code>$.ajax({
  
       type:"POST"        
       url:"/verifyuser",
       data:{id:response.userId},
       async:false
  });
  </code></pre>
  
  <p>but it didn't work. My server side code is below(i am using mvc 4)</p>
  
  <pre><code>    [HttpGet]
      public ActionResult VerifyUser(string id)
      {           
          ViewBag.Id = id;
          return View("~/Views/User/VerifyUser.cshtml");
      }
  </code></pre>
  
  <p>and my js code is below:</p>
  
  <pre><code>var postObj = {
  
              url: "Home/Login",
              data: {},
              callback: function (status, response) {
                  if (response.status === 400) {
                      var errors = response.errors;
                      var serverValidate = new PS.Validate(userObj);
                      var isvalid = serverValidate.showErrors(errors);
                  }
                  else {
  
                      if (response.userId !== null &amp;&amp; response.userId !== undefined) {
  
                          window.location.href = "/verifyuser?id=" + response.userId;
                      }
                      else {
                          window.location.href = "/user-dashboard";
                      }
                  }
              }
          };
  me.fm.post(postObj);
  </code></pre>
  
  <p>Is there any way to do this with or without Ajax? Thanks.</p>