Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,
i want to create a poll application where the user contest for poll only once once his opininion was added he cannot vote for the same poll.
how i can achieve this in my application
Posted

If the user is registered, then have a pollusermapping table. Store the user id who have voted..Check every time when a user votes. If the user id is already existing then do not add the details and inform the user..

If the user is not registered, then it is not possible to my knowledge to restrict the user...

Regards
Dinesh Kumar.V.
 
Share this answer
 
Comments
Vishal Pand3y 17-Feb-14 5:34am    
you can track ip if user is not registered...
Dinesh.V.Kumar 17-Feb-14 6:18am    
There is a problem when you track the IP..the user can login from different IPs...How will you identify which user has logged in from which IP...

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900