I have compiled a flowchart to help me understand how to protect against CSRF in my AJAX application. I've used CSRF prevention successfully in the past on more standard web forms but this is the first time it's really needed to work in AJAX.
I guess I would like any feedback on if the logic works or not because this will be a high-security application that needs to timeout after no longer than 30 seconds and the token will need to be different for every single request as opposed to one for the whole session.