0 votes
in CodeIgniter by

How can the CodeIgniter be prevented from CSRF?

🔗Source: CodeIgniter Interview Questions and Answers

🔗Source: JAVA Interview Questions and Answers

1 Answer

0 votes
by
There are the various ways by which, we can prevent CodeIgniter from CSRF. The most used method is using the hidden field in each page of the website. The hidden field is stored in the user's session. The filed is changed with every HTTP request. The user can be detected in its every request to the website. The hidden value is always compared with the one saved in the session. If it is the same, the request is valid.

Related questions

0 votes
asked Dec 28, 2020 in CodeIgniter by SakshiSharma
0 votes
asked Dec 28, 2020 in CodeIgniter by SakshiSharma
...