| Ratings |  | Unique User Downloads |  | Download Rankings | 
|     72% |  | Total: 457 |  | All time:  6,113 This week: 146  | 
| Version |  | License |  | PHP version |  | Categories | 
| php-session-csrf 1.0.1 |  | Free for non-comm... |  | 7.0 |  | HTTP, Security, PHP 7 | 
|  | 
| Description |  | Author | 
| This package can validate tokens to protect against CSRF attacks.
 It can generate a random token that is stored in a session variable, it is served as request header, and can be used in forms or links for subsequent verification.
 
 The class can also verify if a given token value matches what was stored in the token session variable.
 |  | 
|  |  | Innovation award 
  Nominee: 5x
 | 
 
 | 
Example
| 
<?php
 /*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
 
 
 
 require __DIR__ . 'CSRFSession.php';
 
 
 // 1- To start initializing a token:
 \CSRF\Session\Handlder::__start('any_mix_of_characters_as_the_key');
 
 
 
 
 // 2- To put token to UI form:
 \CSRF\Session\Handlder::__getToken();
 
 
 
 
 // 3- To compare tokens UI and session:
 \CSRF\Session\Handlder::__compare();
 
 | 
Details
CSRFPHP
CSRFPHP is in PHP written in REST Format and THERE WILL BE A VALUABLE XML Version SOOOON
RESTFul JSON Version is Now Available
Comming Soon...
SOAP WSDL XML Version...!!!
Installation
Run 
composer require manonsys/csrf-session
composer update || composer install
|  | Applications that use this package |  | 
No pages of applications that use this class were specified.
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.