Search code examples
phpyiicsrf

how to change csrf field id from YII_CSRF_TOKEN to any other


i am using Get method for form post but i am not interested if person could see if i am using yii framework. So instead of using YII_CSRF_TOKEN i need to make my own defined id name e.g. like only TOKEN.

I don't want to reveal what framework i am using , any kind of tip or help ???


Solution

  • in your application config add the below code

    'request'=>array(    
        'csrfTokenName'=>'YOUR_TOKEN_NAME_HERE',
    ),