![]() |
|
#1
|
||||
|
||||
![]()
I made a little vending machine script, and I was wondering if there is some way to make it so that users can only visit once per day. Right now it uses cookies, but people can just delete them, and I don't want ip logging because people on the same computer wouldn't be able to visit it. Is there any way to do this?
|
#2
|
|||
|
|||
![]()
Make a new field, put yes in when the page loads.
With a cronjob you empty everyday the field :) |
#3
|
||||
|
||||
![]()
umm you can create a table in your database that behaves somewhat similar to the prefix_voters. Whenever a user visits this page, a row is automatically inserted into this table recording his/her userid, username and date of visit. Then write your script to check if the current date is the same as the date stored in your table. If so, the user has apparently visited the page for more than once in a day. All you can do next is to generate an error message for the specific user should this happen.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
![]() Quote:
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forum Integration | coolgem923 | Questions and Supports | 2 | 10-07-2014 02:23 PM |
Forum integration? | Aasixx | Questions and Supports | 6 | 05-06-2012 03:01 PM |
phpbb integration | Chibi_Chicken | Tutorials and Tips | 8 | 10-24-2011 08:01 PM |
phpbb integration | Flexxall | Questions and Supports | 2 | 08-09-2009 06:03 PM |
What's New? |
What's Hot? |
What's Popular? |