Welcome Guest, Not a member yet? Register   Sign In
How to reset CRSF on refresh page ?
#1

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 ? Blush Thanks all!
Reply
#2

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.
Reply
#3

(This post was last modified: 06-23-2016, 12:38 AM by ryantranvn.)

Wow...thanks PaulD so much!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB