EAuthServiceBase.php
protected function setState($key, $value, $defaultValue = null) {
		$session = Yii::app()->session;
		$key = $this->getStateKeyPrefix() . $key;
		if ($value === $defaultValue) {
			unset($session[$key]);
		}
		else {
			$session[$key] = $value;
		}
	}
protected function setState($key, $value, $defaultValue = null) {
		$session = Yii::app()->session;
		$key = $this->getStateKeyPrefix() . $key;
		if ($value === $defaultValue) {
			unset($session[$key]);
		}
		else {
			$session[$key] = $value;
		}
	}
protected function setState ( $ key , $ value , $ defaultValue = null ) { $ session = Yii :: app ( ) -> session ; $ key = $ this -> getStateKeyPrefix ( ) . $ key ; if ( $ value === $ defaultValue ) { unset ( $ session [ $ key ] ) ; } else { $ session [ $ key ] = $ value ; } }
Stores a variable in eauth session.

@param string $key variable name.
@param mixed $value variable value.
@param mixed $defaultValue default value. If $value===$defaultValue, the variable will be
removed from the session.
@see getState
Stores a variable in eauth session .