How you can enable csrf (cross site request forgery) in codeigniter?



How you can enable csrf (cross site request forgery) in codeigniter?..

Answer / Prashant Tiwari

In CodeIgniter, CSRF protection is enabled by default. However, if you need to disable it temporarily for certain situations, you can use the `$config['csrf_protection'] = FALSE;` line in your controller.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CodeIgniter Interview Questions

How you will use or add codeigniter libraries?

1 Answers  


What is hooks and how we can configure hooks in codeigniter?

1 Answers  


What are the helpers in codeigniter?

1 Answers  


Explain how you can enable csrf (cross site request forgery) in codeigniter?

1 Answers  


What is plugin in codeigniter?

1 Answers  


What is base url in codeigniter?

1 Answers  


Is codeigniter easy to learn?

1 Answers  


How to install codeigniter? Explain step by step.

1 Answers  


How do I find out the id of the row I just inserted?

1 Answers  


What are the xss security parameters?

1 Answers  


How do I embed views within views?

1 Answers  


List databases supported by codeigniter frameworks?

1 Answers  


Categories