cancel
Showing results for 
Search instead for 
Did you mean: 

JSESSIONID and cart cookie usage

former_member192125
Participant
1,203

Hi I would like to know for a hybris storefront application I see JSESSIONID & <baseSiteName>-cart cookie being generated, can anyone please explain what is their actual usage for the application. If there's a way to disable them and does it has any actual impact in the application.

View Entire Topic
mpern
Product and Topic Expert
Product and Topic Expert

JSESSIONID is used to have maintain the session between requests. Without it, you will loose the login information, the currently active cart, the checkout progress, everything. JSESSIONID is required to deliver the functionality of your store. (Feel free to consult the Servlet specification and the Tomcat documentation for in-depth information)

<baseSiteName>-cart is used to track the cart of anonymous users across visits. Let's say you browse the page and add something to the cart, without registering an account and logging in. When you return the next day, the cookie is used to load yesterday's cart so you can continue where you left off. You could disable it, but will loose this feature.