PHP Classes
Icontem

Class: CSRF protector


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael A. Peters  >  CSRF protector  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: CSRF protector Support forum
Base name: csrf_class
Description: Prevent CSRF exploits by storing keys in database
Related top rated classes:
Version: 1.0
Required PHP version: 5
License: Public Domain
All time users: 229 users
All time rank: 4646
Week users: 2 users
Week rank: 2899
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Michael A. Peters
Name: Michael A. Peters <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: ???
Age: 36
All time rank: 2095
Week rank: 1694

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching 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

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.

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

File Role Description
Plain text file csrf_class.php Class Class File
HTML file README.html Doc. Documentation
Download all files: csrf_class.tar.gz csrf_class.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products