The output caching is also activated for this page. After applying the "Microsoft security bulletin MS11-100" (Refer: KB2656351) update, the page output caching is stopped working for this page. If we simply uninstall this security update then the output
caching starts working.
Because this security update is marked as CRITICAL SECURITY UPDATE, so our client would not recommend to uninstall it.
So I would like to know is there any workaround for this or some patch released by Microsoft to overcome this issue.
Kindly help us as we are facing this issue in production environment.
You can create a custom HTTPModule and copy all available cookies from the response(including newly added cookies) to the
Context.Item
then clear all the cookies available in the response.
In the next step, read the object stored in the Context.items and add back to the response. So when output cache provider is trying to cache the page there is no cookies in the response. so it works as usual. and then adding the cookies back.
goelankur198...
0 Points
4 Posts
Security update MS11-100 breaks page output caching (Refer: KB2656351)
Jan 09, 2013 09:41 AM|LINK
Environment: ASP.Net 4.0, IIS 7, Windows Server 2008 SP1, 64 bit Operating system
In our ASP.Net application, we are adding cookies to HTTP response in Page_Load() event using the following code -
HttpCookie cookie = new HttpCookie(cookieKey);
cookie.Expires = DateTime.Now.AddMinutes(cookieExpirationMin);
cookie.Values["language"] = language;
HttpContext.Current.Response.Cookies.Add(cookie);
The output caching is also activated for this page. After applying the "Microsoft security bulletin MS11-100" (Refer: KB2656351) update, the page output caching is stopped working for this page. If we simply uninstall this security update then the output caching starts working.
Because this security update is marked as CRITICAL SECURITY UPDATE, so our client would not recommend to uninstall it.
So I would like to know is there any workaround for this or some patch released by Microsoft to overcome this issue.
Kindly help us as we are facing this issue in production environment.
Regards,
Ankur Goel
Pengzhen Son...
Star
8140 Points
837 Posts
Microsoft
Re: Security update MS11-100 breaks page output caching (Refer: KB2656351)
Jan 11, 2013 10:56 AM|LINK
Hi,
You can create a custom HTTPModule and copy all available cookies from the response(including newly added cookies) to the
then clear all the cookies available in the response.In the next step, read the object stored in the Context.items and add back to the response. So when output cache provider is trying to cache the page there is no cookies in the response. so it works as usual. and then adding the cookies back.
For detailed information, you can refer this: http://stackoverflow.com/questions/14211464/output-cache-is-not-working-net4-0 .
Feedback to us
Develop and promote your apps in Windows Store