title: Log4net Adonet Appender: getting data jumbled when multiple instances of an application are runned
body: <p>Scenario: A asp.net web application was deployed on remote IIS and is configured to log into oracle database.Log table has these columns:Login_ID,Log_message,Querystring,ipaddress. So the deployed url was browsed from different systems using different login_ids</p>
  
  <p>Problem: When the application is runned on different systems with different login Ids and different flows, login id  of one flow/system is getting inserted for another flow/system. But when a single instance of the application is runned, walues are properly inserted.</p>
  
  <p>Example: With login id X, the site is browsed through a flow ‘A’ and another user with loginid Y  is browsing the site through  flow ‘B’ . Loginid ‘ X’ is getting inserted into records with flow ‘B’ and flow ‘A’</p>
  
  <p>Code:</p>
  
  <p>user = (User)Session["User"];</p>
  
  <p>log4net.GlobalContext.Properties["LOGIN_ID"] = user.loginid;</p>
  
  <p>Research: After going through few sites, I learnt that log4net contexts doesn’t function properly with asp.net.</p>
  
  <p><a href="http://piers7.blogspot.com/2005/12/log4net-context-problems-with-aspnet.html" rel="nofollow">http://piers7.blogspot.com/2005/12/log4net-context-problems-with-aspnet.html</a></p>
  
  <p><a href="http://piers7.blogspot.com/2007/07/log4net-in-aspnet-redux-implement.html" rel="nofollow">http://piers7.blogspot.com/2007/07/log4net-in-aspnet-redux-implement.html</a></p>
  
  <p>These links suggest me to use httpcontext, which i tried but unable to get the result. So can anyone help me to solwe this problem.</p>