I am working on a poll that utilizes Flash and PHP. I don't really know much about PHP, but I can write variables to a file.
What I need to do is limit the times a user can enter data into a poll to once a day. Right now, the flash handles the login and the poll. But I want to limit the user to a once a day entry.
Client side cookies are out of the question since they can be refused, manipulated, or deleted. Also the getDate function of Flash is no good since the User could adjust their local time. Normally I could use a MySQL database, but this is not an option on this server. So I see PHP as my last hope.
So then I read about Persistent Sessions.
Would it be possible to store a date variable in a server side cookie that would check that User has not entered in data since 24hrs?
Are there any examples, tutorials, or ready-mades for limiting the write capability to once a day or expiring the session after a day?
I read Alexander's tips on PS
http://www.phpbuilder.com/tips/item.php?id=179
but it is beyond my understanding.
Thanks!