title: Session lost too fast for 2 apps on the same IIS server , ASP.NET
body: <p>I have a situation where I have 2 applications on my IIS that are running on the same domain.
  each on it own directory.</p>
  
  <p>example :</p>
  
  <p>1) www.a.com/dir1 - APP1</p>
  
  <p>2) www.a.com/dir2 - APP2</p>
  
  <p>Both apps are running in inProc mode.</p>
  
  <p>I do not use any load balance.</p>
  
  <p>what happens is that APP2 (APP1 is working fine) keeps losing session after 7 - 10 min regardless of all the settings I have input.</p>
  
  <p>Things I have tired:</p>
  
  <p>1) Changing the cookie name of APP2 so that each app will have a unique session cookie name.</p>
  
  <p>2) I have set the timeout window to 240 min.</p>
  
  <p>3) I have placed log on the application start and end event and also on the session start and end and did not find any anomalies, (I see session end events invoked and application end invoked)</p>
  
  <p>4) I have made sure no anti virus is scanning my web.config file.</p>
  
  <p>5) I have moved APP1 to a different application pool.</p>
  
  <p>Your ideas will be appreciated.</p>