title: Generate new Session ID for JSESSIONID in Asp.Net
body: <p>Our main application is built on Asp.Net MVC. We have another service (or subsystem) developed in Java for Login Authentication. So our application has two Session Variables.</p>
  
  <ul>
  <li>ASP.NET_SessionId (Generated by our main MVC application)</li>
  <li>JSESSIONID (Generated by the java subsystem)</li>
  </ul>
  
  <p>We have to provide new session ids for sessions once the user has logged in. Its a requirement to prevent session fixation. I can generate a new session id for the ASP.NET_SessionId using the below code.</p>
  
  <pre><code>HttpContext.Current.Session.Abandon();
  HttpContext.Current.Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
  HttpContext.Current.Response.Cookies.Add(new HttpCookie("JSESSIONID", ""));
  </code></pre>
  
  <p>The above code generates a new session id for ASP.NET_SessionId. But for "JSESSIONID" its clearing the session id value and it's being blank. </p>
  
  <p>Please help me to create a new session id for JSESSIONID in Asp.net application.</p>