title: How to make page accessible to logged in users only ? ASP.NET
body: <p>I want some strict areas from my site to be forbidden to unknown users . I am using the following code in the subfolder web.config :</p>
  
  <pre><code>  &lt;authorization&gt;
      &lt;deny users="?"/&gt;
    &lt;/authorization&gt;
  </code></pre>
  
  <p>and in the web.config of the entire site i have this :</p>
  
  <pre><code>&lt;authentication mode="Forms" &gt;
   &lt;forms defaultUrl="~/Login.aspx" loginUrl="~/Login.aspx"&gt;&lt;/forms&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>if i try to enter the page it doesn't forbid me.
  what am i doing wrong ? why this doesn't work ?</p>