I’ve got a web system where users log in, and it stores a cookie of their session. When they log in as someone else or log out I want to remove that original cookie that I stored. What’s the best way to do that? I’m using Python and Apache, though I suppose the answer will remain the same for most languages.
Share
Set the cookie again, as if you hadn’t set it the first time, but specify an expiration date that is in the past.