Prevent session from being started until product is added to cart (6 posts)

  1. Kruncher
    Posted 4 years ago #


    It would be useful if session was only started when changes are made to the cart. For example, only start session when an item is added to cart.

    The reason for this is recent changes in cookie law in the EU. As far as I can tell, a cookie should only be created once a user has explicitly requested a specific action. So until a user clicks "Add to Cart" it is now unacceptable/illegal to automatically create a cookie (PHPSESSID).

    Is it possible that this change could be made to help users comply with the new EU cookie law?

    Keep up the great work!

    Lea Hayes


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    If you check that new regs again, you'll see that online shopping carts are specifically mentioned as being exempt.

  3. Kruncher
    Posted 4 years ago #

    Hello esmi,

    From what I have read that is only true once the user has clicked "Add to Cart":

    For example, shopping carts would be exempt, as the user has requested for a product to be added

    Apologies if I have misunderstood what I have read...

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    You could have a look at http://quirm.net/download/81/

  5. Kruncher
    Posted 4 years ago #


    That appears to disable cookies altogether. Perhaps the ability to postpone session creation until a product is added to the cart could be a feature request?

    Many thanks

  6. elfin
    Plugin Author

    Posted 4 years ago #

    that would unlikely to be added in at this time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • eShop
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic