Yii 1.0 Session控制
{Write}
Yii::app()->session['url']='http://yiilib.com';
Yii::app()->session->add('author','BoyLee');
{Read}
echo Yii::app()->session['url']; //http://yiilib.com
echo Yii::app()->session->get('author'); // BoyLee
{Destory}
Yii::app()->session->get('author')-> destroy();
unset(Yii::app()->session['url']);
留言