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?
Appreciate your help a lot…