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...
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.
How I can do this?
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:
- 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.
- 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.
- 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.
- 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.
Also tell me where session should be used and where cookie should be used.