Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to stop users voting on my poll more than once
Old 07-04-2008, 02:50 PM How to stop users voting on my poll more than once
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
I recently created a AJAX Poll on my website: http://www.lilwaynehq.com and you can see it in the menu on the left. Now I was wondering how can I stop users voting more than once on it?

Is there some sort of script out or even a tutorial for me to follow or if you know a way, please let me know

Thanks alot
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-04-2008, 03:37 PM Re: How to stop users voting on my poll more than once
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Well, you can identify a user by a cookie, or by IP address. Both of these have their problems, but...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 07-04-2008, 03:43 PM Re: How to stop users voting on my poll more than once
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Well I dont mind if that a user clears their cookies, that they are allowed to vote again
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 07-04-2008, 04:31 PM Re: How to stop users voting on my poll more than once
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Personally, I would use a $_SESSION, it is a server-side cookie that is based on the IP. Not perfect, since some people(like those connected via satellite), have rotating IP addresses, but I still like it best. Of course, you could always check against both cookies and sessions, but for the most part, one is enough.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 07-04-2008 at 04:33 PM..
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-04-2008, 04:44 PM Re: How to stop users voting on my poll more than once
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Ok, do you have a tutorial on this please mate
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 07-05-2008, 11:52 AM Re: How to stop users voting on my poll more than once
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Here it is directly from the horse's mouth: http://php.net/session
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to How to stop users voting on my poll more than once
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18877 seconds with 12 queries