I have a site in .NET . I am writing a cookie that expires in 2011, on the product page. This cookie enables a user to add the product to "My Favorite Products".
However, when I go to the default page or Category page, and refresh the page , the cookie gets deleted.
If I dont go the default or category page, the cookie remains there. Even if I close the browser and return directly to the product page, the cookie is there. However once I go to those 2 pages, the cookie is gone!
I do not have any code that removes the cookie, on both the pages.
Please note, this doesnt happen in Firefox. Only in IE. Also, this doesnt happen in my localhost. Only happens on my production site.
I doing URL rewriting on the Global.asax.vb page. I am using Context.ReWrite for the same.
Does anyone have any clue on whats going on?