How to Pre-Enter Author Data in Comment Form
I wanted a new feature for my blog site that fills the Author, Email and Website fields of my comment form with data collected from a previous comment. That is, if a visitor has made a comment before, the visitor won't have to fill in those fields on the next comment (provided that the visitor is using the same computer). I accomplished this by placing a cookie on the visitor's computer which holds the visitor's name, email address and website URL, and then retrieving that information before a comment form is displayed.
The cookie is created in my save-comment event. The last six lines in its __trigger() function now look like this: