title: How to check if the user is already logged in or not using Cookie?
body: <p>I want to know how can I detect if the user is already logged in or not? using a cookie. I am not using any log-in control. I have a db which checks the ID and PWD.
  Also pls let me know if it can be done without using cookies.
  Any code or links will help.
  web.config:</p>
  
  <pre><code>  &lt;authentication mode="Forms"&gt;
    &lt;forms name="myForm" loginUrl="LogIn.aspx" path="/" defaultUrl="Home.aspx"&gt;
  &lt;/forms&gt;
    &lt;/authentication&gt;
  &lt;authorization&gt;
    &lt;deny users="?"/&gt;
     &lt;/authorization&gt;
  </code></pre>
  
  <p>Thanks</p>