I modified so that unnecessary session is not generated.

I modified so that unnecessary session is not generated when check the CSRF Token.