title: Secure Login Or Login check in asp.net
body: <p>I am new in asp, here my question is that i have a website with pages home, about, contact, and <code>login</code>. In this website user can <code>login</code> and then access the home page, on home page there is a grid view with master page. The problem is that user can access the home page without <code>login</code>, just edit the path in address bar. For example
  the <code>login</code> page path is</p>
  
  <pre><code>http://lolhost:54515/mastergridvie/Login.aspx
  </code></pre>
  
  <p>and user edit it</p>
  
  <pre><code>http://localhost:54515/mastergridvie/Home.aspx
  </code></pre>
  
  <p>so user can go on home page without login, How I can prevent this?</p>
  
  <p>I know for this there use a session, but I have no idea how to and where create a session for this :(
  Please can anyone help me?</p>