In a tutorial from the folks over on Evolt.org this morning, they have a method that can enhance any login form. The feature? A "remember me" allowing your customers/users to come back into the site without having to log back in.
From this new tutorial: I just started programming with PHP and MySQL this week and the first script I wanted to write was a login script. I wanted to include the popular "Remember Me" feature seen on a lot of websites 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.
I found this tutorial Creating a PHP Login Script to be very helpful in writing this script, in fact, a lot of the code presented here is very similar to the code presented in that tutorial. The differences are seen with the new "Remember Me" feature, the use of cookies in addition to sessions, and with slight modifications in the design.
Of course, there's always more than one way to do things, but I think that this piece hits the nail on the head. Using a simple combination of a few extra lines of PHP code and a cookie or two, your users can experience the joy of a site that remembers them...




