OK, so if we have to rewrite index.php to run subdomains isn't that a bit sub-optimal? It'll make upgrading troublesome for instance.
Re-reading the
manual it seems necessary to modify index.php in order to serve *any* set of domains from the same root; else we should set up multiple roots with custom index.php scripts. The problems that people may encounter with cookies aren't documented in the manual pages, nor for the Gateway Manager pages. But I suspect most people will opt for the one-root-for-all-domains model, because it is much easier on the face of it.
Wouldn't it be better for the MODX index.php script to be able to pick up what context it ought to be serving "out of the box"?