includes/RequestManager.php
/**
     * If csrf token not present in session create a new and save in session
     *
     * @param string $forceful
     */
If csrf token not present in session create a new and save in session
@param string $forceful
If csrf token not present in session create a new and save in session @param string $forceful
public static function regenerateCsrfToken($forceful = false) {
        $tokenName = Constants::CSRF_TOKEN_NAME;
        if (Utils::isEmpty(self::getCsrfToken()) || $forceful) {
            $token = Utils::getRandomString();
            Session::set($tokenName, $token);
        }
    }
public static function regenerateCsrfToken ( $ forceful = false ) { $ tokenName = Constants :: CSRF_TOKEN_NAME ; if ( Utils :: isEmpty ( self :: getCsrfToken ( ) ) || $ forceful ) { $ token = Utils :: getRandomString ( ) ; Session :: set ( $ tokenName , $ token ) ; } }
If csrf token not present in session create a new and save in session
 @param string $forceful
If csrf token not present in session create a new and save in session @param string $forceful