| Recommend this page to a friend! |
| Classes of Michael A. Peters | > | CSRF protector | > | Download .tar.gz .zip | > | > | > | |||||
|
| ||||||||||||||||||||||||||||||||||||||||||||
| Detailed description | ||
| This class can be used to prevent Cross-site Request Forgery (CSRF) exploits by storing token keys in database. It can generate a random key and store it in a database record associated to the current session. It uses PEAR MDB2 database abstraction layer to support many types of databases. The class can also check if the key is valid when the form is submitted with a token hidden input field. If it exists, the key record is deleted from the database to avoid it is reused. |
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Databases | Database management, accessing and searching | View top rated classes | |
| User Management | User records, authentication and session handling | View top rated classes | |
| Security | Security protection and attack detection | View top rated classes |
| Applications | ||||||
No application links were specified for this class.
|
|||||||||||||||