title: How to check user is "logged in"?
body: <p>I am using form authentication with below method in my ASP.NET application</p>
  
  <pre><code>FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true);
  </code></pre>
  
  <p>How do I check whether user is logged in or not? And how can I get the user name of a logged in user?</p>