Hi all,
I have created a web part and in the code behind for the control it looks for the existence of a cookie and it's value. If it finds the cookie and it contains the correct value the web part's visibility is set to false.
The issue is that the web part is being cached, so even if the cookie is there with the correct value the web part is being displayed.
How can I stop this happening? I've got [PartialCaching(0)] on my .ascx.cs file, I've set 'Partial cache minutes:' in the web part properties to 0. According to
this page cookie macros cannot be used in the web part properties (and therefore visibility property).
My test development site doesn't have site caching like the live site and works perfectly. Does anyone have any suggestions (other than turning of site caching) of how to get around this issue?
Thanks in advance for your help as always!
Matt