PHP Classes

Reload Preventer: Small class for preventing data being sent twice

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 1,289 All time: 2,983 This week: 182Up
Version License Categories
reloadpreventer 1.0Free for non-comm...HTML
Description Author

Small class for preventing that data is sent more than one time by a user if he presses Reload on his browser by setting a token that is written to the session and also placed as a hidden filed in a form. If those two values aren't the same, you get a boolean false by the isValid() function.

Picture of flaimo
Name: flaimo <contact>
Classes: 7 packages by
Country: Austria Austria
Age: ???
All time rank: 861 in Austria Austria
Week rank: 285 Down2 in Austria Austria Down

  Files folder image Files  
File Role Description
Plain text file Class base class
Accessible without login Plain text file index.php Example example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,983
This week:182Up
 User Ratings  
 All time