Skip to content

jaypoc/ocsrf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ocsrf

This is my Implementation of OWasp's CSRF code. Please feel free to comment or make suggestions so I can improve this code.

usage

<?php
  require_once(ocsrf.class.php);
  session_start();

  if (!OCSRF::protect())
  {
    // Do something in the event of suspected CSRF 
  } else {
    // Process Submitted Form Data
  }
?>

<form method="POST">
  <? echo OCSRF::generate_token(); ?>
  ...
</form>

About

PHP Class implementing OWasp's CSRF code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages