InterviewSolution
Saved Bookmarks
| 1. |
What is CSRF and how you can enable CSRF in CodeIgniter? |
|
Answer» In codeIgniter CSRF token is a random generated value that CHANGES with each HTTP request SENT by webform. When the form is submitted by user then WEBSITE CHECKS this submitted CSRF token equals or not the saved in the session. We can enable CSRF protection from config.php and UPDATE the following values $config['csrf_protection'] = TRUE; |
|