0 Replies Latest reply on Mar 26, 2013 12:14 PM by nbroat1

    Problem processing cookie set in Java, in a CF function

    nbroat1

      The cookie, uuuid, is set in a jsp (on a server running websphere). 

       

      Cookie uuuid = new Cookie("uuuid","emailaddr");

      uuuid.setPath("/");

      response.addCookie(uuuid);

       

      I then send myself to the other side (a CF server)

       

      response.sendRedirect(response.encodeRedirectURL(urlstring));

       

      On the CF server, I have a function that tries to process the cookie and store its value into a another cookie that lives on this host.

      As opposed to the host it was first set on. But...

       

      Cookie info = null;

      Cookie[] cookies = request.getCookies();

      if (cookies != null) {

        for (int i=0; i < cookies.length; i++) {

              info = cookies[i];

              String cookiename= info.getName();

              if (cookiename.equals("uuuid")) {

                if (!info.getValue().equal("")) {

                    cfcookie name=SCL_AUTHDUSER value="#info.getValue()#"   

                    info.setMaxAge(0); 

                    info.setPath("/");

                    response.addCookie(info);

      } } } }

      generates this error: Variable INFO is undefined. Line: 67

       

      I have the required delimiting less than and greater than symbols for cfcookie

      I just keep losing the cfcookie line everytime I add those delimiters to this posting. Very frustrating as well.

      Anyway around the Cold Fusion error?  Thanks for any and all information,

       

      Nelson --------------------------------------------------------------------------------