Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a feature to prevent duplicate POSTs #870

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

greezybacon
Copy link
Contributor

This patch adds an activity token to the page (if the <?php activity_token(); ?> is added to a PHP template inside of a form with method="post"). When the request is sent to the server, the server will confirm the current activity token in the user's session with the activity token sent in the request. If they match, then the request represents new activity. If they do not match, the request is likely a repeat.

The token is rolled each time it is checked, regardless if the activity token represents new or repeat activity.

This patch adds an activity token to the page (if the
<?php activity_token(); ?> is added to a PHP template inside of a form with
method="post"). When the request is sent to the server, the server will
confirm the current activity token in the user's session with the activity
token sent in the request. If they match, then the request represents new
activity. If they do not match, the request is likely a repeat.

The token is rolled each time it is checked, regardless if the activity
token represents new or repeat activity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant