EAuthServiceBase::getState PHP Method

getState() protected method

Returns the value of a variable that is stored in eauth session.
See also: setState
protected getState ( string $key, mixed $defaultValue = null ) : mixed
$key string variable name.
$defaultValue mixed default value.
return mixed the value of the variable. If it doesn't exist in the session, the provided default value will be returned.
    protected function getState($key, $defaultValue = null)
    {
        $session = Yii::app()->session;
        $key = $this->getStateKeyPrefix() . $key;
        return isset($session[$key]) ? $session[$key] : $defaultValue;
    }