# How do I configure Litium 8 to cookie-track carts for anons & signedins

**URL:** <https://forum.litium.com/t/how-do-i-configure-litium-8-to-cookie-track-carts-for-anons-signedins/2882>\
**Category:** Questions\
**Tags:** litium-8\
**Created:** [March 10, 2023, 11:59am UTC](https://forum.litium.com/t/how-do-i-configure-litium-8-to-cookie-track-carts-for-anons-signedins/2882 "2023-03-10T11:59:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ericsj11](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ericsj11/32/899_2.png) [@Ericsj11](https://forum.litium.com/u/Ericsj11)\
**Post date:** [March 10, 2023, 1:12pm UTC](https://forum.litium.com/t/how-do-i-configure-litium-8-to-cookie-track-carts-for-anons-signedins/2882/2 "2023-03-10T13:12:04Z")

</div>

Isen’t the cart always saved in the cookie in L8?  
Adding this code in Startup.cs makes it possible to control the time.

> [@Change cookie time for "cart"](https://forum.litium.com/t/change-cookie-time-for-cart/2659/2):
>
> I haven’t tested but maybe you can modify that with the OnAppendCookie method that you can configure in Startup.cs public void ConfigureServices(IServiceCollection services) { services.Configure\<CookiePolicyOptions\>(options =\> { // This lambda determines whether user consent for non-essential cookies is needed for a given request. options.CheckConsentNeeded = context =\> true; options.MinimumSameSitePolicy = …

And if you’re looking for the name, I think it’s “cart”

---

_[View the full topic](https://forum.litium.com/t/how-do-i-configure-litium-8-to-cookie-track-carts-for-anons-signedins/2882)._
