Jump to content

Double cookie issue


gu78

Recommended Posts

I've upgraded from 1.7.1 to 1.7.7.1 just to found out a missuse of cookie->write() at Context->updateCustomer(). It should be cookie->update(), as this causes to have a cookie twice.

I found this because I've a custom REST interface into my PS for a really old software, so when receives 2 cookies, it doesn't process the server response.

I had this problem in the past because a paid module made the same.

 

Please, developers, don't use cookie->write() everywere, as it's written automatically on _destruct event

Edited by gu78 (see edit history)
Link to comment
Share on other sites

  • gu78 changed the title to Double cookie issue

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...