title: How to deny a page to be accesed directly ,access only with login
body: <p>I have 2 textboxes and 1 button , the login page.
  The password is crypted into a hash then compared with the hash pass in the database , how can i make on button1 to access admin page but only If you are logged in and also if you access the admin page directly in browser and you are not logged it. Shouldnt work and redirects you to login page.</p>
  
  <p>Thankss</p>