Jump to content

[SOLVED] Unique user identifier for same ip address?


dannyb785

Recommended Posts

Hi all,

 

I'm building a site for a client and I have a poll feature that they can include on pages. The way I have it set up right now is that when a user(always anonymous) makes a vote on a poll, the current session is recorded to have voted for that poll, so that it won't show up again if the page is viewed(so that they cant vote more than once). However, if the user exits the window, they can easily open a new one and go to the page and vote again(I dont want this).

 

I would like to make it instead where the user's ip address is recorded so a user can't vote twice in the same day. Problem is, since most user's coming to this site are college students, most of the time they will be using the university's wireless and therefore would all have the same ip address.

 

Is there any other way to uniquely identify a visitor that way even if 2 are visiting with the same ip, that they can be differentiated?

Link to comment
Share on other sites

ah ha. You know, in all the time I've worked with php(about a year and a half) I've never worked with cookies. Looks like I'm gonna have to! I'll look into it, but if anyone else has other ideas, please let me know.

 

But thanks for that! That's probably what I'm gonna need to do.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.