public function setPersistentState($name, $value) {
		
		$name = static::getCookiePrefix() . ucfirst($name);
		
		$this->persistentState[$name] = $value;
				
		setcookie($name, json_encode($value), NULL, '/');
		
	}
public function setPersistentState($name, $value) {
		
		$name = static::getCookiePrefix() . ucfirst($name);
		
		$this->persistentState[$name] = $value;
				
		setcookie($name, json_encode($value), NULL, '/');
		
	}
public function setPersistentState ( $ name , $ value ) { $ name = static :: getCookiePrefix ( ) . ucfirst ( $ name ) ; $ this -> persistentState [ $ name ] = $ value ; setcookie ( $ name , json_encode ( $ value ) , NULL , '/' ) ; }
Store variables of any type in a cookie for next retrievement. Existent variables with
same name will be overwritten.

@param	string	State name.
@param	mixed	State value (any variable type).
Store variables of any type in a cookie for next retrievement . Existent variables with same name will be overwritten .