I have implemented a feature to restrict images by users. I have written a custom filter to handle the condition. I am not getting value from the cookies macro. Tried the following method in the Content filter WHERE condition.
ResellerIdsToEnable LIKE '%{% Cookies["thisRID"] #%}%' OR ResellerIdsToEnable = '*'