We could generate an "untrusted" cookie. This prevents clients using it from meddling with "trusted" clients.
It's not really fine grained and also doesn't prevent untrusted clients from meddling with one another, but seems like a starting point for someone inclined to add more security to X.