Limit time that cookies persist for when set in preview mode
kingo55 opened this issue · 8 comments
Currently test cookies in preview mode persist for the standard duration set at the container level through cookieDuration
(60 days is the default).
When previewing experiments, we don't need the cookie to persist for very long. And for tests being developed within staging mode, which have potential conflicts with other live experiments, it can cause experiments to break and cause confusion for users.
What if we limited the time for cookies set within preview mode?
@kingo55
Good point! We can limit the time for cookies set within preview mode. The other alternate could be: do not set cookies for preview mode, preview mode works only with the preview parameters.
I'm not big fan of interfaces for preview mode. We end up disabling stuff like the optly ball and the GTM interface, whilst not as annoying, does take up a lot of screen real estate.
Maybe we can consider a half-way point? Small UI element, that can be quickly dismissed (but reappears on next load).
With mint-metrics/mojito-chrome-inspector#1 being well-defined now, should this issue be closed? @kingo55 @allmywant
@dapperdrop
I think so.
@dapperdrop - yes, good point