Welcome Guest, Not a member yet? Register   Sign In
Invalid CSRF token when submitting a form
#7

(This post was last modified: 01-24-2018, 01:22 PM by alex3410.)

it is just a standard page i am not using JS for the form at all. (its why I am so frustrated with it)

The cookies set are:
Name:
MLLCookieName  

Value:
d6f58cab651a4768600ee07f7a335b4b

Domain:
.mylocolist.com


Name:
PHPSESSID

Value:
34bd8t1eqmch09t53csk5pvdh7

Domain:
mylocolist.com



Edit:
If i set 
Code:
$config['csrf_regenerate'] = FALSE;
It always comes up with: Invalid CSRF token.

if i set it to TRUE then i get:
Invalid CSRF token.

but if i refresh the page (resubmitting the form) i get 

Code:
An Error Was Encountered
The action you have requested is not allowed.

And the value of MLLCookieName changes on each refresh 


any thoughts? 


Edit 2:
setting csrf_protection to FALSE or adding URL to csrf_exclude_uris also gives the error
Code:
Invalid CSRF token.
Reply


Messages In This Thread
RE: Invalid CSRF token when submitting a form - by alex3410 - 01-24-2018, 01:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB