PHP Login Script with Remember Me Feature

In "Remember Me" feature that basically keeps users logged into the website, even after they've closed the browser so that the next time they come, they won't have to login again manually. "Remember Me" feature, use cookies in addition to sessions

In login.php, when a user chooses to be remembered, two cookies are set on the user's computer. Actually it is one cookie, but one that contains two important pieces of information: the username and the md5 encrypted password. What is a cookie anyways? It is a temporary file that is stored on the user's computer on behalf of the website in order to hold information that is important to the website. However, it also gets deleted when the user decides to log out, as you will soon see.


Click here to get the Reference web url