title: Request.IsAuthenticated always true. Wham am I missing?
body: <p>I'm trying to add username to cookie and clear it on logouts but <code>Request.IsAuthenticated</code> returns always true so I'm not able to know if it is a member or not on the next page.</p>
  
  <p>Here is what I'm trying:</p>
  
  <pre><code> public void Logout()
      {
          FormsAuthentication.SignOut();
          Session.Abandon(); // trying everything...
      }
  
  
  
  protected void signin_submit_Click(object sender, EventArgs e)
      {
          //checklogins...
          HttpCookie authCookie = FormsAuthentication.GetAuthCookie(username_top.Text, true);
      }
  </code></pre>
  
  <p>I'm clicking the Logout from javascript function, and it hits the debugger so I'm sure that its being called.</p>
  
  <p>I'm checking the value on <code>Page_Load</code>:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          bool isAuth = Request.IsAuthenticated; // always true !!!
          if (isAuth)
          {
              registeredDiv.Visible = true;
              guestDiv.Visible = false;
          }
      }
  </code></pre>
  
  <p>What am I missing? How can I know if the user is logged in or not?</p>
  
  <p>Edit: I found out that <code>authenticationMode</code> was set to Windows in web.config. </p>
  
  <p>Edited it as:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
  </code></pre>
  
  <p>But now it always returns false. I tried redirecting after login to same page yet still didn't work. Any ideas?</p>