Csrf Token

Hi,I’m new to yii2 framework. Can anyone help me how to enable one csrf token per session.currently it generates per token per request.

No. Tokens are there to be generated per request. If these will be generated per session then they would have no meaning at all. In that case you can simply disable them.

CSRF is Cross-Site Request Forgery : https://en.wikipedia.org/wiki/Cross-site_request_forgery

Upon reading that wiki article, I think you get why and how.