I have a list of comment objects in the view. Each comment has one cookie that indicates the status of the user. Example: like, spam, ...
In the view, I want to read the corresponding cookie of each comment to display the correct presentation to the user. Example: user A, who liked comment B, then the view will display an unlike button
I do not want to read cookies in the controller because the returned data is a list of comment objects.
My question is, how to read cookie directly from the point of view of MVC3?
source share