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