title: ASP.NET HeadLoginView Logout Click. Logs out of other local websites too
body: <p>I have 2-3 web projects ( beginner ones). In all the websites I have a login control where a user can log in. When the user logins with correct info, I set the </p>
  
  <pre><code> protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
  {
  
      if (CHUser.AunthencateLogin(Login1.UserName, Login1.Password))//Checks with database
          e.Authenticated = true;
      else
          e.Authenticated = false;
   }
  </code></pre>
  
  <p>Up to here is fine, but the problem occurs when I login into 2 separate websites (local) at same time, and log out at any one of them. When I log out at one the other website is also logged out ( when refreshed). Following is the code I use when logging out.</p>
  
  <pre><code>protected void LoginStatus1_LoggingOut(object sender, LoginCancelEventArgs e)
      {
          Session.Clear(); //though logout works without this code. It is for other
   //sessions that are manually created by me
          }
  </code></pre>
  
  <p>I can't see to find out what's the cause of it. I am also new to web development.</p>
  
  <p>I would also like to know if this is the right way of logging in a user.</p>