Yii has flash messages that's stored in session variables and is available in current and next requests. For some basic understanding, please read how to work with flash messages. The 3 basic functions used:Yii::app()->user->setFlash('key', '… more »