There is a problem. I don’t want that people would be able to refresh one page on my site. How can I do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Refresh is a browser side solution. You can’t restrict it from server side.
What you can do is actually to use PHP’s SESSION to actually prevent people from visiting any page twice.
However user is still able to come back to the same page if he/she removes the session cookie for your website.
If you’re talking about double posting, you might want to look at the POST-REDIRECT-GET Solution. See: http://en.wikipedia.org/wiki/Post/Redirect/Get