Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6995105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:58:42+00:00 2026-05-27T19:58:42+00:00

I am trying to build a voting system where user can vote without signing

  • 0
  • I am trying to build a voting system where user can vote without signing up on the site
  • The cookies are dependent on browser, so people can vote more than once if they use different browsers(I want to stop them doing that)(I don’t want any bias)
  • I read evercookie is something that I can use. The problem that I saw with this is that the call seems asynchronous. for example

I do the following

 var ec = new evercookie
 ec.get("id", function(value) { 
        alert("Cookie value is " + value);
        if (value != null) {
           alert('cookie already set, returning');
           return;
        }
        ec.set("id", "12345");
        alert('cookie saved');
 });

When I use this code, it first sets the cookie, refreshes the page and then returns the value, so I see in following order

cookie saved
cookie already set, returning

Can someone please help me to setup browser-independent cookies?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:58:43+00:00Added an answer on May 27, 2026 at 7:58 pm

    You really should not use that library. It puts a lot of trash in your visitors browser, is very unstable (the page crashes for me). I think it exists to state a case and not to be used in a production environment.

    Also, it can be worked around easily by just not using a browser, but a script (wget, etc.) instead. An attacker can vote hundrets of times in a short period like that.

    You should save votes by IP-address in a database and allow only 1 vote per day or so. That’s the most common tradeoff between security and usability.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

am trying to build a point system which checks how much points a user
Im trying to build a simple faye realtime based notification system so I can
Trying to build sslsniff on a RHEL 5.2 system here. When compiling sslsniff on
Im trying to build call to action button on my site using jQuery. I
Trying to build a website where the background of the site is a video
Im trying to build a extremely basic content management system. I want to do
Im trying to build a little site using XML instead of a database. I
Im trying to build a addin that can take some a selection of cells
I'm trying to build a Chrome browser extension, that should enhance the way the
Trying to build my own user control: <%@ Control Language=C# AutoEventWireup=true CodeFile=TabMenu.ascx.cs Inherits=TabMenu %>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.