Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Apr 28, 2012 07:23 AM|LINK
I was wondering if anyone else witnessed the same behavior?
I generate PNG image via ASP.NET code. To generate this image a user ID must be stored in a persistent cookie. Before I begin generating the image I begin reading the cookie as such:
HttpCookie cookie = Request.Cookies["MyCookieName"];
if (cookie != null)
//Read cookie value
It works fine except the situation when I load my page in IE and then try to either print that page or generate a preview. In that case the 'cookie' variable in my code becomes null and the whole image logic fails. Note that the HTML page itself (that also
uses the same cookie) renders just fine.
Also note that if I do the same in Chrome or Firefox the image is printed/previewed without a problem.
I stopped using IE a long time ago, but I hear that some people may still be using it. So, my first question, is it worth bothering to fix it for IE? And if yes, any idea how to make it work there?