Session Data Lost For Guest

Hello! I’ve been reading through the forum topics and I can’t seem to find an answer

for my problem regarding session data being lost for a guest user.




public function actionSet1(){

   Yii::app()->session['see'] = "A";

   .

   .

   .

   $this->render('page1')

}


public function actionSet2() {

  PC::debug(Yii::app()->session['see']); //result: NULL

  .

  .

  .

  $this->render('page2')

}



I’m trying to create a 2-page wizard. actionSet1 and actionSet2 are controller actions that are called in each page of the wizard. Now every time I go to page 2, the session variable I set in actionSet1, is now NULL.

I have no issue with this if the user is logged in. I just want to know the possible causes of this issue if I’m going through the wizard as guest.

I also tried using user->setState/user->getState but still no luck, the issue persists under a guest user.

Am I missing something here?