Login   Register  
PHP Classes
elePHPant
Icontem

Token: Generate and check tokens to avoid CSRF attacks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Francesco Cirać
Name: Francesco Cirać <contact>
Classes: 3 packages by
Country: Italy Italy
Age: 23
All time rank: 139756 in Italy Italy
Week rank: 463 Up24 in Italy Italy Up


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Francesco Cirać  >  Token  >  Download Download .zip .tar.gz  >  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
Version: -
PHP version: 5.0
License: Public Domain
All time users: 987 users
All time rank: 3400
Week users: 1 user
Week rank: 1380 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  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


  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
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
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file readme.txt Doc. Readme file
Plain text file token.class.php Class Token class file

Download 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.