[thelist] Remember Me Option -Cookies

Chris W. Parker cparker at swatgear.com
Tue Feb 11 16:08:01 CST 2003

Mark Joslyn <mailto:Mark.Joslyn at SolimarSystems.com> wrote:

> Any help with this would be great!

paul sent you a perfectly good resource for helping you! the problem is
that you just didn't ask your question correctly.

i don't use php but here is the order of events.

1. present the login form: username, password, "Remember Me" checkbox
2. have that form data post/get to another page (i usually do something
like... login.asp => loginP.asp, "P" stands for "processing")
3. retrieve the data supplied in the form from the querystring. verify
that the information is correct. that is, make sure there is a valid
usersname/password combo.
4. check to see if the user has checked the "Remeber Me" checkbox.
5. if YES, add a cookie to their computer that stores their username and
password along with an expiration date. you might want to encode the
password for security purposes.
6. immediately after check to see if you can read the cookie.
7. if not, tell them you were not able to set a cookie.
8. if so, continue on like normal.
9. if they didn't check the box, continue on like normal.

does that help?


More information about the thelist mailing list