wood burning stoves 2.0*
The moose likes Servlets and the fly likes How can we restrict user from duplicate voting in websites Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How can we restrict user from duplicate voting in websites" Watch "How can we restrict user from duplicate voting in websites" New topic
Author

How can we restrict user from duplicate voting in websites

Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
Hi All,

I have just logged into one website and participated in a poll. I could able to vote to my need. I tried again to vote it has told me that you have voted already. Ok cool, it seems to be good.
I tried again by clearing cookies and cache, still i could not vote. Even i tried by changing browser from mozilla to IE. Still i could not vote. It is fabulous to me.
Can anybody make me understand underlying logic in preventing duplicate votes.

Thank you !!!

Regards,
Ajay.
SCJP 1.4.
ajju Krishnamurthy
Greenhorn

Joined: Nov 14, 2008
Posts: 4
Hi Ajay,
They are persisting your user id inthe Data Base Level.
So Clearing the cache/cookie dont help you to vote again.



Ajju
Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
Thank you for your reply.

I have not logged in and did the voting, as a normal user i submitted my vote.

URL is: http://in.news.yahoo.com/national.html

Please help me over this.

--
Regards,
Ajay.
Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
You mean to say that my machine name or address getting captured and putting in persistent storage.
By this way it is avoiding duplicate entries?
Please help me over this.

--
Regards,
Ajay.
SCJP 1.4
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
An id that uniqely identifies you is likely stored on the back end. It could be a session id with a long enough expiration.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
Don't get me started about those stupid light bulbs.
 
subject: How can we restrict user from duplicate voting in websites