Thursday, October 23, 2014

Items in the cart are getting removed on window close in websphere commerce (Cookies Issue)



 Mostly this issue occur bcoz PersonalizationId is not set enable in wc-server.xml

<PersonalizationId display="false" enable="false"/> 
Updated session management in wc-server.xml, As below :

<SessionManagement name="Session Management">

            <url-rewriting display="false" enabled="false"/>

            <cookie acceptance="false" age="-1" display="false" domain="" enabled="true" path="/" persistence="wcs"/>

            <PersistentSession cookieExpiry="30" delayNewPersistentGuestSession="true" display="false" enable="true"/>

            <PersonalizationId display="false" enable=" true "/>

            <referrerCookie age="-1"/>

        </SessionManagement>



While going through infocentre, I found in FP7 we can use below optional parameter.

Optional: To ensure a shopper is forgotten after logging off, set the value of the logoffRefresh attribute to true, as shown in the following sample:


<PersonalizationId display="false" enable="true" logoffRefresh="true"/>


Another point to check is in STORE table :
   In the store table the  PERSISTENTSESSION column value should be 3.
 

No comments:

Post a Comment