Removed dep on API
[ninja.git] / application / config / csrf.php
blobd44ad7682042e7bb531669f8ff0819a9fb63573e
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
3 /**
4 * Check if we always should use CSRF tokens to secure forms
5 */
6 $config['active'] = true;
8 /**
9 * Session key to hold CSRF token
11 $config['csrf_token'] = 'csrf_token';
13 /**
14 * token generation timestamp
16 $config['csrf_timestamp'] = 'csrf_timestamp';
18 /**
19 * csrf token lifetime in seconds
20 * For how long to we trust the csrf token?
22 $config['csrf_lifetime'] = 5400;