0 Replies Latest reply on Jun 5, 2013 7:17 PM by blanquish

    CQ5 custom tag not sending cookie set in response when using IE10

    blanquish

      Hi,

       

      I have some custom code that will create a cookie and send it to the browser. This code works for Chrome, Firefox and IE9, but for some reason in IE10 the cookie will not even get sent in the response headers!

       

      The code that creates the cookie is just Java standard:

       

                     Cookie cookie = new Cookie("recently-viewed-producs-cookie", encryptedCookie);
                      cookie.setPath("/");
                      cookie.setDomain(getSlingRequest().getServerName());
                      cookie.setMaxAge(COOKIE_AGE_IN_SECONDS);
                      getSlingResponse().addCookie(cookie);
      

       

      Does anybody have an idea why this could happen? I encrypt the contens of my cookie, so there are no invalid characters (I believe).

       

      Other cookies created by CQ5 are sent and the browser saves them. I checked the cookie settings for the browser and it is set to accept everything, including session cookies.

       

      Any suggestions are welcome.

      Blanca