Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 656 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 656 Bytes

CSRF

CSRF Helper for Kohana 3.x (Cross Site Request Forgery)

Description

The CSRF class will generate a token to use in forms, and provides a validation method to use as a rule CSRF::valid

To use jquery to automatically add csrf token in form, include the following in your header

<script type="text/javascript" src="/csrf/javascript/jquery.js"></script>

to generate token use: getCSRFToken() javascript function (useful for ajax calls)