cwncool Posted February 25, 2007 Share Posted February 25, 2007 I have a script that can only allow a person to do something once every 24 hours. Right now I have it set up with cookies, so it adds a cookie with some info, and if the cookie is there, it doesn't do it. This obviously won't work well, because the person can just delete their cookies and do it again... How else can I do this? Quote Link to comment Share on other sites More sharing options...
magnetica Posted February 25, 2007 Share Posted February 25, 2007 Quite a few ways to do this one. Store there IP address in either a text file or a database and then delete their IP 24 hours from the time they submit Quote Link to comment Share on other sites More sharing options...
cwncool Posted February 26, 2007 Author Share Posted February 26, 2007 and manually delete it every 24 hours? and don't say set up a cron job, because there's gotta be an easier solution... Quote Link to comment Share on other sites More sharing options...
cwncool Posted February 26, 2007 Author Share Posted February 26, 2007 well, i figured out a different way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.