Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dennis Pullens 9 posts 90 karma points
    Jan 17, 2018 @ 13:14
    Dennis Pullens
    0

    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

  • Brian Lyk Larsen 19 posts 274 karma points
    Jan 19, 2018 @ 08:10
    Brian Lyk Larsen
    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.

Please Sign in or register to post replies

Write your reply to:

Draft