craft-upvote icon indicating copy to clipboard operation
craft-upvote copied to clipboard

Cookie gets too big, causes errors

Open kragit opened this issue 5 years ago • 8 comments

Voting Method: Anonymous voting PHP: 7.0.30 Craft: 3.0.33 Plugin: 2.0.3

I've had reports of voting breaking on the front-end if an individual votes for a large amount of items as it causes the cookie to get too big. Some rough math from other users pegs this number at around 130 different items, give or take a handful. I'll be running my own testing late next week.

superagent.js?v=1542947070:5 Set-Cookie header is ignored in response from url: http://stage.huskles.com/index.php?p=actions/upvote/vote/upvote. Cookie length should be less than or equal to 4096 characters.

HTML5 storage has been suggested as an alternative.

kragit avatar Dec 02 '18 06:12 kragit