title: How to set asp.net authenticated properties
body: <p>I have the following settings in my web.config file. It basically restricts access to a page if the user is not logged in. If I don't want to use the asp login controls or implement a membership provider, how can I 'tell' asp that the loginregister.aspx page has authorized the request if I want to implement my own login system?</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
              &lt;forms loginUrl="~/loginregister.aspx"
                     name=".ASPXFORMSAUTH" /&gt;
          &lt;/authentication&gt;
  
          &lt;authorization&gt;
              &lt;deny users="?" /&gt;
          &lt;/authorization&gt;
  
  &lt;location path="~/secretpage.aspx" allowOverride="true"&gt;
          &lt;system.web&gt;
              &lt;compilation debug="true" /&gt;
              &lt;authorization&gt;
                  &lt;deny users="?" /&gt;
              &lt;/authorization&gt;
          &lt;/system.web&gt;
      &lt;/location&gt;
  </code></pre>