Monday, March 16, 2015

Message Key: _ERR_INVALID_COOKIE

Message Key: _ERR_INVALID_COOKIE


Issue : RequestedSessionIdFromURL,boolean bSingleSignOn) CMN1039E: An invalid cookie was received for the user, your logonId may be in use by another user.
[3/16/15 10:47:41:815 GMT] 000000a3 SystemOut     O ErrorDataBean:
Originating command:
Message Type: 1
Message Key: _ERR_INVALID_COOKIE
Message: CMN3101E The system is unavailable due to "{0}".


Resolution : When using Firefox or Safari browser, and a guest session
expired. Customer will see Generic System Error page 

Open : Stores\WebContent\GenericSystemError.jsp

Search for key : _ERR_INVALID_COOKIE

try {
      ErrorDataBean errorBean = new ErrorDataBean ();
      com.ibm.commerce.beans.DataBeanManager.activate (errorBean, request);
      if (errorBean.getMessageKey().equals("_ERR_INVALID_COOKIE"))
      {
                  Cookie cookies [] = request.getCookies ();
                  Cookie myCookie = null;
                  if (cookies != null){
                  System.out.println ("Cookies Issue");
                        for (int i = 0; i < cookies.length; i++) {
                              if (cookies [i].getName().equals ("WC_USERACTIVITY")) {
                                    myCookie = cookies[i];
                                    break;
                              }
                        }
                  }
                  if (myCookie != null)
                  {
                  System.out.println ("Cookies Issue -Here");
                        myCookie.setMaxAge(0);
                        myCookie.setValue("");
                        response.addCookie(myCookie);
                  }
String fwhostName = "http://" + request.getHeader("host")
 // To resolve append with below syntax (or) Redirect to home page
+"/webapp/wcs/stores/servlet/TopCategoriesDisplay?storeId=12556&catalogId=33057";
            response.sendRedirect(fwhostName);
      }
      System.out.println ("ErrorDataBean:\n" + errorBean.toString()+"\n");
%>




1 comment:

  1. Ibm Websphere Commerce: Message Key: _Err_Invalid_Cookie >>>>> Download Now

    >>>>> Download Full

    Ibm Websphere Commerce: Message Key: _Err_Invalid_Cookie >>>>> Download LINK

    >>>>> Download Now

    Ibm Websphere Commerce: Message Key: _Err_Invalid_Cookie >>>>> Download Full

    >>>>> Download LINK gj

    ReplyDelete