Session Problem !

Hi,




        'session' =>  array(

                   /*  'class'=> 'CDbHttpSession', */

                   'class' => 'system.web.CDbHttpSession',

                    'sessionName' => 'EgyKwt',

                    'cookieMode' => 'only',

                    'autoStart'=>'true',

                    'connectionID' => 'db',

                    'sessionTableName' => 'session',

                    'cookieParams' => array('domain' => '.' . "MySite.com", 'lifetime' => 86400 ),

                    'timeout' => 86400,

                    'autoCreateSessionTable' => false,

                ),







//themes/design/views/view1.php

                    Yii::app()->session['hello'] = 'world';

                    Yii::app()->session->add('ses', "VALUE OF SESSION");




//themes/design/views/layouts/main.php

echo Yii::app()->session['hello'];

echo Yii::app()->session['ses'];

 print_r($_SESSION);



returns null !!

The sessions not been stored, and I can see the updates in the mysql table… what the solution ?!

Ty

The login works only if user check "Remember Me", but does not even store any onther sessions!!

I could not find any solution on google … am I the only one who faced this issue !!

Even if I refresh the page the session data disappear !!