public function getPersistentState($name) {
	
		$name = static::getCookiePrefix() . ucfirst($name);
		
		if (array_key_exists($name, $this->persistentState)) {
			return $this->persistentState[$name];
		} else if (isset($_COOKIE[$name])) {
			return json_decode($_COOKIE[$name]);
		} else {
			return NULL;
		}
		
	}
public function getPersistentState($name) {
	
		$name = static::getCookiePrefix() . ucfirst($name);
		
		if (array_key_exists($name, $this->persistentState)) {
			return $this->persistentState[$name];
		} else if (isset($_COOKIE[$name])) {
			return json_decode($_COOKIE[$name]);
		} else {
			return NULL;
		}
		
	}
public function getPersistentState ( $ name ) { $ name = static :: getCookiePrefix ( ) . ucfirst ( $ name ) ; if ( array_key_exists ( $ name , $ this -> persistentState ) ) { return $ this -> persistentState [ $ name ] ; } else if ( isset ( $ _COOKIE [ $ name ] ) ) { return json_decode ( $ _COOKIE [ $ name ] ) ; } else { return NULL ; } }
Retrieves variables of any type form a cookie named like in param.

@param	string	State name.

@return	mixed
Retrieves variables of any type form a cookie named like in param .