So I have found a tutorial supplied on my last thread about generating a CSRF token ... Now how should I implement it?
I've tried making it generate a new token per form request (however trying to do multiple form requests makes it invalid so that's off the list) and from reading other threads making one session token per user login is the way to go.
So what is the best way? Should I make it so when a user logs in, it will just automatically assign a
$_SESSION['CSRFToken']
And make it assign a hashed/256 bit value? And then make that session token be assigned to every form. I guess I just don't understand how CSRF works and how to actually do something about it. Basically it just sounds like I should make each user login have a session called a Security Token that appears in every form.
Thanks for all the help!