Session variable duration similar to login duration cookie based

Hi all,

I have a requirements to bind a session variable and maintain its existence while the user login cookie is valid:

suppose I have the following

	$duration=3600*24*30; // 30 days

	Yii::app()->user->login($this->_identity, $duration);		

does the below session variable "merchant_id" will be valid within the same amount of time?

	Yii::app()->user->setState('merchant_id', "114");

Appreciate your help a lot…