title: Can cookie do session task to check your login status and some doubts in cookie and session and any special location for cookie in HTML page
body: <p>I want to add remember me option in my login page. Now is it possible without using session or cookie and tell me which one should I use here cookie or session...</p>
  
  <p>Now if I am signed out and shut down my PC and then again start it as I enter the URL of my login page either username and password must be filled in both boxes or automatically I get login.</p>
  
  <p>How I can do this?</p>
  
  <p>I am confused in session and cookie. I know that cookie is sent to our computer when I visit any site. Is it like this? Some doubts are here:</p>
  
  <ol>
  <li>Is password and username are automatically thrown into your computer when you use any login page which have not used cookie concept in his page.</li>
  <li>I have two pages one is login page and second one is password_matching page. Now if I create a cookie which store my user name and password,next time what type benefit I can get from this cookie and how I will call a cookie there.</li>
  <li>I use session for checking whether I am logged in or not, can I use cookie in the same way to check whether I am logged in or not.</li>
  <li>Is there any special location where I should use cookies on my HTML page. Like I use session in very first line for checking does session exist or not.</li>
  </ol>
  
  <p>Also tell me where session should be used and where cookie should be used.</p>