Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002

    pay views restriction

    is there a way to restrict a user from seeing a certain page 5 times with in like 24 hours or something? can be cookies or session just need something basic - Liverpool Web Design - Liverpool Clubbing

  2. #2
    Join Date
    Mar 2006
    Can't be sessions since they get killed after 12 mins inactive (default on most platforms, can be changed to 24 hours, but that might end up crashing your system cause of the sheer volume of sessions ). Cookies will be very easy to manipulate with, since the user could just delete them...

    IMO, make a database which records the ip and time of each of the 5 visits, and then only allow access if the first visit is over 24 hours ago, and then move the second visit down to the first, third to second etc and inset the time in the fifth visit column... If that makes sense?
    || Semi-professional PHP developer || Exams right now, don't I just feel lucky? ||

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts