bastienu Posted June 16, 2021 Share Posted June 16, 2021 Hi, (I open this discussions after talking on the Github, here : https://github.com/PrestaShop/PrestaShop/issues/24903) Sometimes, for some customers, we have a blank page on the homepage, with a Bad request. This is due to very very big cookie size. So I'm trying to find how we can have so big cookies on the browser and then sent in the header of each requests... causing bad request errors... For example, on my account, I have multiple cookies prefixed by "Prestashop-" : - PrestaShop-67fb7f2c09cf97bf9b9747900c7092b8 - PrestaShop-b667ef084cc25f6a675d2bfc2f33ecda - PrestaShop-bc20d32305bff7bca7f94559091d638e - PrestaShop-d128dcc0b239a91cabb9edf397675c4e - PrestaShop-ef797002620351cc301e7998512559d3 The Context::getContext()->cookie uses the Prestashop-bc20d32305bff7bca7f94559091d638e (bolded above). So, 3 questions: Why do I have 5 Prestashop cookies? Is it a normal behavior or is it because the previous one are not deleted? How my Prestashop is knowing which one of the cookie it needs to use? How to see what is the (decrypted) value of each of these cookies, to see which behavior (or module) is creating so much and so big cookies? Thanks for your help on this questions. Link to comment Share on other sites More sharing options...
bastienu Posted June 17, 2021 Author Share Posted June 17, 2021 Up ? Anyone ? Link to comment Share on other sites More sharing options...
LazyCircles Posted November 23, 2021 Share Posted November 23, 2021 Bringing this post up because I'm facing the same issue as described. Is there any way to reduce the cookie size ? Thank you Link to comment Share on other sites More sharing options...
pe._sca Posted January 27, 2022 Share Posted January 27, 2022 Hi ! I'm facing same issue with a multistore Prestashop. If i look on my browser, i have one cookie per store, and all are sended in each request to my host. I don't have anything custom related with cookies. If i wait some minutes after a Bad Request response appear, it's desappear for a few "refresh page", and then appears again. I check the size of my cookies, and it's always growing up until 2400 bytes each Link to comment Share on other sites More sharing options...
LazyCircles Posted June 3, 2022 Share Posted June 3, 2022 Hi, Following up to this post, its a fact that prestashop creates big cookies on pages but my issue came from a payment module that was saving the callback response in a cookie, they had to redo it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now