Server code for sharing variables.