A client requires the teacommerce cart to be saved on a client's machine for a long period of time. To do this, I changed the 'Cookie timeout' setting from 60 to 1440 (1 day for testing purposes). The 'Use cookies' setting is checked.
As I began testing on several environments, I noticed that the cookie has the right 'expires date' set, but is removed/overwritten before the 'expires date' nonetheless, even if no data changed. (Before it would have the currentOrderId set, but after revisiting the page the 'expires date' is different and the currentOrderId is empty).
I've searched our solution to see if we overwrite anything cookie related, but nothing has come up. Is there anything i'm overlooking in Tea Commerce?
Cookie resets before expire date
Hi!
A client requires the teacommerce cart to be saved on a client's machine for a long period of time. To do this, I changed the 'Cookie timeout' setting from 60 to 1440 (1 day for testing purposes). The 'Use cookies' setting is checked.
As I began testing on several environments, I noticed that the cookie has the right 'expires date' set, but is removed/overwritten before the 'expires date' nonetheless, even if no data changed. (Before it would have the currentOrderId set, but after revisiting the page the 'expires date' is different and the currentOrderId is empty).
I've searched our solution to see if we overwrite anything cookie related, but nothing has come up. Is there anything i'm overlooking in Tea Commerce?
Thanks in advance for any help/suggestions!
Dennis
Umbraco v7.5.6 TeaCommerce v3.0
Hi Dennis,
I haven't been able to re-create your problem on the demo website https://demo.teacommerce.net/, and it's not a problem I've experienced before.
Could you have a rogue TC.removeCurrentOrder() call somewhere? That would remove the currentOrderId and change the expiration date.
is working on a reply...