title: PHP Session and cookies with LOGIN
body: <p>I m new in PHP Programming and tried to understand cookies and session and how it can be used for one code with HTML</p>
  
  <p>First i want to create a login page - </p>
  
  <p>2) response page ,without using any DB or mysql</p>
  
  <p>If users is true- saves username to cookie, and sets session variable LogggedIn to TRUE.<br>
  Displays link to "content page".  </p>
  
  <p>3) content page - checks session variable - if user is LoggedIn, says Hello "XXXX" where XXXX is the username from the cookie.<br>
  If not, displays link back to login page.  </p>