Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Multiuser voting

Multiuser voting

Scheduled Pinned Locked Moved ASP.NET
securitytutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    B87
    wrote on last edited by
    #1

    Hi friends, I have created voting system every user can vote not only registered users,so i want to add some security to it,i need some ideas on how to prevent multiuser voting. I dont know exactly may be like checking cookies r session r something else.

    E C 2 Replies Last reply
    0
    • B B87

      Hi friends, I have created voting system every user can vote not only registered users,so i want to add some security to it,i need some ideas on how to prevent multiuser voting. I dont know exactly may be like checking cookies r session r something else.

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      The only way you can truely get it to be single user single vote is by making everyone register. Other than that you can do it by IP Address, but then only 1 person at a school can vote for example. There are other ways, but the best way is only registered users can vote. If you allow the unregistered to vote, you need to accept the fact that they can vote multiple times.

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      B 1 Reply Last reply
      0
      • B B87

        Hi friends, I have created voting system every user can vote not only registered users,so i want to add some security to it,i need some ideas on how to prevent multiuser voting. I dont know exactly may be like checking cookies r session r something else.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        You're on the right track. Writing a cookie will help, the session is obviously useless, making me wonder if you understand how the cookie could help, or just threw some buzz words out there. You could write a cookie when someone votes, that uses an id to define the post that was voted on. Of course, users can delete the cookie, and you'd end up writing a lot of cookies, which is not ideal. So, once again, there's really no possible way to stop a person from voting, if they have not logged on. There's just no way to magically tell if the same person is voting again, or another person on the same machine, or the same person on another machine, etc.

        Christian Graus Driven to the arms of OSX by Vista.

        B 1 Reply Last reply
        0
        • C Christian Graus

          You're on the right track. Writing a cookie will help, the session is obviously useless, making me wonder if you understand how the cookie could help, or just threw some buzz words out there. You could write a cookie when someone votes, that uses an id to define the post that was voted on. Of course, users can delete the cookie, and you'd end up writing a lot of cookies, which is not ideal. So, once again, there's really no possible way to stop a person from voting, if they have not logged on. There's just no way to magically tell if the same person is voting again, or another person on the same machine, or the same person on another machine, etc.

          Christian Graus Driven to the arms of OSX by Vista.

          B Offline
          B Offline
          B87
          wrote on last edited by
          #4

          Thanx Christian Graus, It will bw usefull for me if u give me link that can guide me on how to write cookie. :)

          C 1 Reply Last reply
          0
          • B B87

            Thanx Christian Graus, It will bw usefull for me if u give me link that can guide me on how to write cookie. :)

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            here[^]. But, like I said, it won't actually work properly. It will stop only people who are not at all motivated to double vote on your site.

            Christian Graus Driven to the arms of OSX by Vista.

            B 1 Reply Last reply
            0
            • E Expert Coming

              The only way you can truely get it to be single user single vote is by making everyone register. Other than that you can do it by IP Address, but then only 1 person at a school can vote for example. There are other ways, but the best way is only registered users can vote. If you allow the unregistered to vote, you need to accept the fact that they can vote multiple times.

              The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

              B Offline
              B Offline
              B87
              wrote on last edited by
              #6

              Thanx, Thats 100% true.

              1 Reply Last reply
              0
              • C Christian Graus

                here[^]. But, like I said, it won't actually work properly. It will stop only people who are not at all motivated to double vote on your site.

                Christian Graus Driven to the arms of OSX by Vista.

                B Offline
                B Offline
                B87
                wrote on last edited by
                #7

                Thats k,no problem i goin to now something.... I will try it....

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups