Sets the value for metadata key.
key
If value is null, the metadata key is unset.
value
a SessionItem
the metadata key
the value for key or null