We have a small requirement which requires flash programming skills.
There is a voting section in our website where we need to prevent duplicate voting using flash cookie. The flash cookie should store the poll id, end date and don’t allow the user to vote from any browser from that particular PC. After the end date the poll id should be automatically removed from the cookie. This check is required as we are allowing no-login users to vote and expecting the user will not vote from browsing centers. It should support most of the flash versions.
The flow looks like below.
1. The user will click on “Vote” (<input type="image" button.
2. The JQuery Submit function will pass poll id (Get or Post Method) to the flash object to check whether user has already voted from any of the browsers. If "no" we will proceed to step 3.
3. Pass the poll id to the back end using AJAX (JQuery).
4. On ‘success’ from call back message invoke flash object to register poll id and the expiry date in flask cookie.