Writes the cookie into the response stream with the value passed. The value is always the UserId.