Forum Moderators: coopster

Message Too Old, No Replies

Display time until cookie Expires

         

dkin

6:10 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



This is very simple I presume I just cant wrap my head around it, I just want to display the amount of time until the cookie expires. Any Suggestions?

dkin

6:20 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



Okay I have reevaluated my predicament and I do not believe cookies suit my needs, What I am trying to do is I have a script a user (or anyone) can click and it will add one point to the users account. If I use cookies the user can easily delte the cookie and click the link again, I do not want this I want the user to only be able to click the link once every 24 hours. Now, does anyone have any idea how I can accomplish this?

jatar_k

7:21 pm on Feb 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



whyou can store the click datetime in a db and not show the link if it is less than 24 hrs since the last click. The only thing is you will need a way to verify the user.

dkin

8:48 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



Cant I just record the IP address and veify him/her like that?

Its not only the user that can click on the link, if he wants he can send it to his mother to click on it too :D

jatar_k

8:53 pm on Feb 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



trouble is lots of people come in on the same IP, both from ISP's and also think of any networked environment where multiple users use a single external ip.

dkin

8:57 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



so how could I record each individual?

rlkanter

9:17 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



Short answer is you can't. If someone really wants to cheat there's really no way to stop them.

Cookies are stored per browser, so a single person could clear the cookie, use a different browser/computer/etc.

IP's can be shared, people can use proxys to get around a limit place per IP.

Some people restrict based on user accounts, generally registered to an email address, even if you exclude free email accounts, most broadband isps all 5+ email accounts per "user".