Sideeffects of disabling "user" component?




    'user'=>array(

        // enable cookie-based authentication

	'allowAutoLogin'=>true,

        'loginUrl'=>null,

    ),




Can i remove this from main.php?

I don’t want to use UserIdentity class and app()->user

I will do my own authentication.

Will this ruin anything?

removing this config will cause Yii to use defaults… you will still be able to access Yii::app()->user.

I would recommend integrate your authentication to Yii Identity/WebUser mechanizm as this provides unified user context to whole application. this way you will be able to use other standard components (authorization filter for controllers actions, etc).

if you really need it - I think you can ignore Yii::app()->user and use your own authentication/authorization.