How to delete cookies from the browser? Only problem, I need it to be done from server-side. With that I meant: When user opens page, server automatically deletes cookies that are related to its page. Is that possible? I need it because sometimes users are too, lets say, lazy to do it by themselfs.
Share
Well, there sure is a way:
But then, you have to remember the state, that you already have deleted the cookies for that user and that session, otherwise it will be a headache to set new cookies 😉
EDIT: And this also may be useful in your case: How to delete all cookies in PHP?