Skip to content

EDD session data is not fully removed on logout #9774

@megamenu

Description

@megamenu

Bug Report

Expected behavior

When I log out, I expect the "edd_session_x" cookie to be removed

Image

Actual behavior

When I log out, the "wordpress_" cookies are removed, but the "edd_session_x" remains. The presence of the edd_session cookie makes it impossible to complete the checkout using a different email address to the one you were previously logged in with, even though you've now logged out.

Steps to reproduce.

Be logged out, fully cleared browser session with all cookies deleted
Have auto register enabled.
Complete the checkout using a@test.com
Customer is automatically logged in as a@test.com
Log out
Complete the checkout using b@test.com
An error message is shown "Error: To complete this payment, please login to your account."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions