So I have this page that can only be seen by a user 5 times. And I made this code that goes into the database and it adds 1 to the AccessCount field everytime the user logs in. What I want to do is that if the user refreshes his web browser, have the code that records the AccessCount NOT run.
How can I do this? Thanks!
if they counter is being incremented only when the user logs in, only increment it in the portion of the code that logs them in (sets cookies, session vars, etc), no need to worry about page reloads.
otherwise there is no way to detect a new ‘visit’ by a user vs. a page reload. you could set a time frame in which they could refresh the page and not have the counter incremented.