Sunday, April 21, 2013

YII session control

{Write}
Yii::app()->session['url']='http://pritomkumar.blogspot.com';
Yii::app()->session->add('author','Pritom Kumar');
 
{Read}
echo Yii::app()->session['url']; //http://pritomkumar.blogspot.com
echo Yii::app()->session->get('author'); // Pritom Kumar

No comments:

Post a Comment