Jump to content

Dealing with cookies from outside Prestashop within controllers


Recommended Posts

In our Prestashop 1.6 module, we need to access a cookie that comes from an external tracking code, i.e., a cookie not created inside Prestashop. If I access it through the standard PHP global $_COOKIE, everything works fine; however, such a code does not pass through the Prestashop validator.
If I am trying to retrieve the cookie using $this->context->cookie->get, I don't get anything, because Prestashop encrypts cookies internally.
Is there any valid solution, how to get to external cookie data?
Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...