Feature Pack 8: The Madisons store is deprecated. Most features demonstrated in the Madisons store are available in the Aurora store.Windows

Persisting the mobile store locator cookie

For security reasons, the Madisons mobile starter store locator does not persist the cookie values by default. You can set the store locator cookies to be persistent, where customers can avoid re-entering information in the store locator forms.

Before you begin

Ensure that you have completed the following prerequisites:

Procedure

  1. Open the following JSP files:
    • AddToStoreList.jsp
    • RemoveFromStoreList.jsp
    • SaveStoreSelection.jsp
  2. Find the following call to the cookie:
    
    cookie.setMaxAge(-1);
    
  3. Replace it with the following call:
    
    cookie.setMaxAge(60*60*24*365);
    
  4. The store locator cookie values are now persistent, preventing customers from re-entering information in the store locator forms.