Hi All,
How to work with sessions in YII. I’m quite confused where to start for this sessions on yii. can any one pls guide me or give me some useful source
Thanks alot
Hi All,
How to work with sessions in YII. I’m quite confused where to start for this sessions on yii. can any one pls guide me or give me some useful source
Thanks alot
You can use the sessions like this
for store a value to sessions:
$session=new CHttpSession;
$session->open();
$session['key']='value';
for retrieve the session data:
$session=new CHttpSession;
$session->open();
$value=$session['key'];
echo $value;
The link very helpful: http://www.larryullman.com/2011/05/03/using-sessions-with-the-yii-framework/
Thanks