session problem

hi,

on load of the defaultcontroller im creating a new "testsession". then im trying todo a ajax call to "test/show" to retrieve the "testsession". but its always empty. is there something im doing wrong?

thanks

pete




DefaultController


public function actionIndex() {

  Yii::app()->session->add('testsession', "test");

}


TestController


public function actionShow() {

  Yii::app()->session->get('testsession');

} 




when I call the session not problem, but I Logout that session there are ("test")not clear. I use this code


public function actionLogout()

	{

		Yii::app()->user->logout();

		$this->redirect(Yii::app()->homeUrl);

	}

how to solve this problem? how to destroy_session? please help me :(