title: Session lost after window.location.href
body: <p>In login html page(my html in m.yazilimsozluk.com sub domain) I make ajax call</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: "http://mobile.yazilimsozluk.com/Account/Login/",
          .....
  </code></pre>
  
  <p>In Account controller Login action I set User session</p>
  
  <pre><code>public ActionResult Login(LoginModel model, string returnUrl)
  {
    .....
    Session["MemberId"] = Member.ID;
    ....
  }
  </code></pre>
  
  <p>and then in profile.htm page(my html in m.yazilimsozluk.com sub domain)
  I make ajax call if user is login like this</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: "http://mobile.yazilimsozluk.com/Uye/IsAccount/",
          ...
  </code></pre>
  
  <p>but in Uye controller IsAccount action session(Session["MemberId"]) is null always</p>
  
  <pre><code>public JsonResult IsAccount()
  {
  
     if (Session["MemberId"] != null)
  }
  </code></pre>
  
  <p>why session is lost?in user.htm I make call it set session ,there is no problem</p>
  
  <p>but in profile.htm when ajax call go action session is null </p>
  
  <p>there is no any attribute about session in global.asax or web.config</p>
  
  <p>you can login here :<a href="http://m.yazilimsozluk.com/user.htm" rel="nofollow noreferrer">http://m.yazilimsozluk.com/user.htm</a>  ( username and pass is Tanebaum ) after login in hamburger clikc profilim :<a href="http://m.yazilimsozluk.com/profile.htm" rel="nofollow noreferrer">http://m.yazilimsozluk.com/profile.htm</a></p>