I have a simple login page that queries a database and then redirects to the index page with a successful authentication. I would like to add a checkbox on the initial screen to set a cookie for the person's username so it will automatically be filled in when they come back the next time. I have a few questions about setting this up.
I don't think that the cookie is being set because I am using a <cflocation> tag to redirect with. Is that correct? How should I set the cookie?
If another person wants to login and inputs a different name and then checks the remember me box will the cookie get overwritten or will there be two cookies?
Do you have any examples of doing this? Thanks a ton!