PHP Classes

File: Readme.md

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP CSRF Token Generation   Readme.md   Download  
File: Readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP CSRF Token Generation
Generate tokens to protect against CSRF attacks
Author: By
Last change: Update Readme.md
Date: 6 years ago
Size: 969 bytes
 

Contents

Class file image Download

PHP CSRF Class

This package can generate token for csrf security in forms and add token to url

features

1. Generate new token on refresh/reload/open 2. Delete expire tokens automatically 3. Set time ( for tokens after how many time expire) 4. Delete current token (that passed in url) 5. Debug support 6. Verify tokens is exists or not 7. Count tokens 8. Delete unnecessary tokens.

Description

This package can generate tokens to protect against CSRF attacks. It can create a string that is stored in a session variable and will be used to identify a real user that submits a form in the script that handles the form submission. The package can verify whether the user really submitted the form checking the token string by comparing the string passed via an URL parameter or an hidden form input. Tokens are valid for a configurable amount of time and are deleted after they expire.

Input class

get form https://github.com/Lablnet/PHP-Input-Class