title: Renaming Spring csrf token variable
body: <p>My application runs under another portal application. Both are implemented in spring and both use csrf security. </p>
  
  <p>My need is basically change how the csrf token is named in the session, so both the tokens can work without conflicts. What I tried so far is creating another token repository and trying to change the parameter name and the session attribute name in the security config class.</p>
  
  <pre><code>final HttpSessionCsrfTokenRepository tokenRepository = new HttpSessionCsrfTokenRepository();
  tokenRepository.setHeaderName("TOOLBIZ-CSRF-TOKEN");
  tokenRepository.setParameterName("toolbiz_csfr");
  //tokenRepository.setSessionAttributeName("toolbiz_csrf");
  </code></pre>
  
  <p>When I make request Spring doesn't really like this new setup very much, and the log produces the following line:</p>
  
  <pre><code>Invalid CSRF token found
  </code></pre>
  
  <p>What should I do more? Am I missing something?</p>