How does csrf work in codeigniter?



How does csrf work in codeigniter?..

Answer / Rakhi Verma

CSRF (Cross-Site Request Forgery) protection in CodeIgniter can be implemented using the Security Library's $this->security->get_csrf_hash() function. This function generates a token that is included with each form submission. The corresponding value should be included in the form and matched by the server to validate the request.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CodeIgniter Interview Questions

How to send post request in codeigniter?

1 Answers  


How to read, write or remove session in codeigniter?

1 Answers  


What is library in codeigniter?

1 Answers  


Explain how to set and get config item value in codeigniter?

1 Answers  


Explain application flow chart in codeigniter?

1 Answers  


How do you use aliases with autoloading models in codeigniter?

1 Answers  


Why we use cli in codeigniter?

1 Answers  


Can I extend the core database class?

1 Answers  


Who developed codeigniter?

1 Answers  


What is the basic codeigniter url structure?

1 Answers  


What is csrf codeigniter?

1 Answers  


How to create base controller in codeigniter?

1 Answers  


Categories