Yii ~ use session

Yii::app()->session['var'] = 'value';
echo Yii::app()->session['var']; // Prints "value"



reference
http://www.larryullman.com/2011/05/03/using-sessions-with-the-yii-framework/

沒有留言: