cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Cookies / Sessions after PHP 5.6 Upgrade

Issue with Cookies / Sessions after PHP 5.6 Upgrade

Hello,


I have recently upgraded my clients Magento 1.9.0 Multi-Store from PHP 5.3 to 5.6.

 

After the upgrade, we have noted some strange behaviour across the front and backend of the website.

 

Backend:

Works fine, but intermittently will throw "Invalid Form key, Please Refresh The Page".

 

This is very intermittent & I have followed all of the general advice posted on the Forum & StackOverflow without any success.

 

This issue can trigger at any point, saving tracking, product changes, CMS pages or general configuration settings.

Pressing the browser "Back Key" with reset the Form Key & allows me to carry on using the admin panel without logging in.

Frontend:
Once again, all of the issues are intermittent - so very difficult to test:

We have noted that on occasion customers add a product to the cart, but the cart displays "No items". When navigating back to the website the product is THEN added to the cart.

We have also noted that on the checkout, customers have occasionally been redirected back to the cart when "Submitting Order".

 

This does not empty the cart & on the second attempt, the order will proceed correctly. 

Logs:
All system, exception & server logs are clean. No records of any errors, notices or warnings. 


 

This is a very tricky bug as it is very intermittent, which makes it almost impossible to test & debug, does anyone have any suggestions?

 


Freelance Web Developer - Graphic Designer - SEO Analyst
Conor Rhys Tomkins
5 REPLIES 5

Re: Issue with Cookies / Sessions after PHP 5.6 Upgrade

Hello @Conor_Tomkins

 

Are you using any module for caching?

 

https://github.com/nexcess/magento-turpentine

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Issue with Cookies / Sessions after PHP 5.6 Upgrade

Hello,

 

Yes I am using a Full Page Cache module:

https://mirasvit.com/magento-extensions/performance-optimization/full-page-cache.html


Could this be causing the issue?


Freelance Web Developer - Graphic Designer - SEO Analyst
Conor Rhys Tomkins

Re: Issue with Cookies / Sessions after PHP 5.6 Upgrade

Hello @Conor_Tomkins

 

Please disable and try it.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Issue with Cookies / Sessions after PHP 5.6 Upgrade

Hello,


Before I start disabling modules, can you please explain why the cache could cause issues with Cookies & Sessions?

 

It doesn't seem related?


Freelance Web Developer - Graphic Designer - SEO Analyst
Conor Rhys Tomkins

Re: Issue with Cookies / Sessions after PHP 5.6 Upgrade

Hello @Conor_Tomkins

 

Mostly caching module rewrite session file so may be related to this.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer