Post by ash_sp99 » Thu Apr 15, 2021 3:39 am

Hello,

I am using opencart 2.1.0.2. We want to know when we add the product in the cart then info is added in the phpsessionid and no separate cookie is created.

Is that possible, when product is added in the cart by the Guest, then one cookie is created either empty or simple value 1, so we can use that cookie to serve cache or non cache content. And when product removed from cart or purchased then the cookie is deleted.

We required this cookie, to use Cloudflare Bypass cache on cookie page rule.

Thanks in advance.

Newbie

Posts

Joined
Thu Feb 09, 2017 2:56 am


Post by straightlight » Thu Apr 15, 2021 5:28 am

ash_sp99 wrote:
Thu Apr 15, 2021 3:39 am
Hello,

I am using opencart 2.1.0.2. We want to know when we add the product in the cart then info is added in the phpsessionid and no separate cookie is created.

Is that possible, when product is added in the cart by the Guest, then one cookie is created either empty or simple value 1, so we can use that cookie to serve cache or non cache content. And when product removed from cart or purchased then the cookie is deleted.

We required this cookie, to use Cloudflare Bypass cache on cookie page rule.

Thanks in advance.
I would not suggest this solution.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Thu Apr 15, 2021 6:16 pm

ash_sp99 wrote:
Thu Apr 15, 2021 3:39 am
We required this cookie, to use Cloudflare Bypass cache on cookie page rule.
Rather than talking about cookies and sessions, can you tell us what the problem actually is?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by ash_sp99 » Sat Apr 17, 2021 4:28 am

there is no problem, using that cookie we can serve the differentiate between in new and repeat visitor and serve the content faster from the cache.

Newbie

Posts

Joined
Thu Feb 09, 2017 2:56 am

Who is online

Users browsing this forum: No registered users and 39 guests