Login   Register  
PHP Classes
elePHPant
Icontem

Class: Token

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Francesco Cirać  >  Token  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Token
Base name: token
Description: Generate and check tokens to avoid CSRF attacks
Related classes: , , , , , ,
Version: -
PHP version: 5.0
License: Public Domain
All time users: 595 users
All time rank: 4117
Week users: 4 users
Week rank: 933
Picture of Francesco Cirać
Author: Francesco Cirać <e-mail contact>
Packages: 3 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Age: 20
All time rank: 160165 in Italy Italy
Week rank: 715 Up28 in Italy Italy Up


  Detailed description  
This class can be used to generate and check tokens to avoid Cross-Site Request Forgery (CSRF) attacks.

It generates random token strings and stores it as session variable associated to the time when the token was created.

The generated token be used to pass in an hidden input form for later verification against CSRF attacks.

The class can also check if the token is valid by looking at the respective session variable and verifying whether it did not pass more time than a configurable token timeout value.

 

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file example.php Example Example script
Plain text file readme.txt Doc. Readme file
Plain text file token.class.php Class Token class file

Download all files: token.tar.gz token.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.