This was bugging me so I thought I'd take a look and see why commenter names and URLs were not being remembered in CS. I thought it had something to do with the Cookies settings in the CS System Configuration panels, but the issue turned out to be much more obvious and required all but 2 minutes.
Check out the code below from CommentForm.cs. Take no more than 14 seconds. See it?
BlogPostResults result = WeblogPosts.Add(entry, CurrentUser, out postID);
if(result == BlogPostResults.Success && postID > 0)
Context.Response.Redirect(BlogUrls.Instance().CommentPosted(DataSource,CurrentWeblog));
if(chkRemember.Checked)
{
HttpCookie userCookie = new HttpCookie( "CommentUser" );
userCookie.Values.Add("Name", tbName.Text);
userCookie.Values.Add("Url", tbUrl.Text);
Context.Response.SetCookie(userCookie);
}
Yeap. The redirect was executing and the cookie was never being set. Move the if(result == BlogPostResults....) lines with the Redirect() below the if(chkRemember.Checked) block. Set the cookie, THEN redirect.