Session Auto_Start=False

I am new in this framework .

I am using "acesscontrol" filter in My controller and I have set session [auto_start=false]

but session get automatically started .

How to solve.

If I am commenting the filter "acesscontrol" then session not getting started .

so please help me .

Thanks in advance.

accesscontrol must check if user is logged (and if so - what user). this requires session checking, because user state is stored in session…

Yes I have done this in main.php.

But when i am checking Yii::app()->session->sessionID in [ beforeAction() in controller ] I am getting the session id (*** If i set "accessControll" filter in controller *** ) …

If I comment the "accessControll" portion then I am not getting the session id.