How to reset CRSF on refresh page ? |
In CodeIgniter 3 have function "Regenerate token on every submission" so cool. But, if i want to create a function "Regenerate token on every REFRESH PAGE". How can i do that ? Thanks all!
If you have set regeneration to true, then every post request will regenerate the token. Pressing refresh is not a post so will not regenerate the token. There is no way of doing a 'force refresh' that I know of and I am not sure why you would want to. If you are not posting anything there is no need to refresh the token, as without a post you will not be susceptible to CSRF.
Hope that helps, Paul.
Wow...thanks PaulD so much!
|
Welcome Guest, Not a member yet? Register Sign In |