release 1.2

Jan 22, 2009 at 12:17 PM
Hi Phill,

It seems that when a users submits a vote and immediatly refreshes the page, the count for this vote is increased. I've succesfully found a cure for this. It's just a matter to check if the cookie exists within the buttonSubmit_Click method like this:

if (HttpContext.Current.Request.Cookies[cookieName] == null)
                {
                    HttpCookie cookie = new HttpCookie(cookieName);
                    cookie.Value = "true";
                    cookie.Expires = DateTime.Now.AddDays(cookieExpires);
                    HttpContext.Current.Response.Cookies.Add(cookie);
                    updatePollList();
                }

I hope you can change this in an upcoming release.

Regards,

Mattias