What is the difference between the following two functions:
Yii::app()->user->setState('key', value);
and
Yii::app()->session['key']->value;
Are they functionally equivalent? Is there a time when you should use one over the other?
Yii::app()->user->setState('key', value);
and
Yii::app()->session['key']->value;
Are they functionally equivalent? Is there a time when you should use one over the other?