title: ASP.NET session stateid issue
body: <p>i have a load balancing application, and we have an issue where a user try to log in, he/she will then see some else's name. </p>
  
  <p>during the logout process we only call "Session.Abandon();".  The article in <a href="http://support.microsoft.com/kb/899918" rel="nofollow">http://support.microsoft.com/kb/899918</a> states the following:</p>
  
  <blockquote>
    <p>When you abandon a session, the session ID cookie is not removed from
    the browser of the user. Therefore, as soon as the session has been
    abandoned, any new requests to the same application will use the same
    session ID but will have a new session state instance. At the same
    time, if the user opens another application within the same DNS
    domain, the user will not lose their session state after the Abandon
    method is called from one application.</p>
  </blockquote>
  
  <p>does anyone have a clue of why the user sees some else's name while loging in?</p>
  
  <p>Edited - code:</p>
  
  <pre><code>public class CacheManager
  {
  public Contact.Contact User
  {
      get { return HttpContext.Current.Session["Contact"] as Contact.Contact; }
      set { HttpContext.Current.Session["Contact"] = value; }
  }
  }
  
  header.ascx.cs
  
  /// &lt;summary&gt;
  /// This is the session manager
  /// &lt;/summary&gt;
  public readonly CacheManager Localcache = new CacheManager();
  
  
  public Login()
  {
       var contact = BAL.Contact.Get(this.UserName, this.Password);
       Localcache.User = contact;
       Response.Redirect(Request.Url.AbsoluteUri);
  }
  
  protected void Logout_Click(object sender, ImageClickEventArgs e)
  {
          Session.Abandon();
          Response.Redirect(Constants.HomePage);
  }
  
  
  header.ascx:
  
  You are logged in as
  &lt;br /&gt;
  &lt;span class="user_desc"&gt;
  &lt;%= string.Format("{0} {1}",LocalCache.User.FirstName ,LocalCache.User.LastName)%&gt;&lt;/span&gt;
  </code></pre>