How are CSRF tokens stored on the server side ( by spring security or tomcat)
问题 This question is not about how CSRF tokens works, but is rather about they are stored on the server side. In short, CSRF tokens are generated by server and injected in to the web page/form. When the form is submitted the csrf token is extracted by the server and compared to the one saved on the server. So far so good. From this earlier posting - CSRF token value when same page is opened in two tabs on same machine? Here's the excellent answer which explains that - The server will create a