Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages