-1
I am setting a cookie in Node.js when the user chooses the language:
res.cookie('lang', req.body.lang)
But I wanted to delete the cookie when it closes the site, so that when it comes back the language is the default, is it possible to do this? I only found answers to Session cookies.
But I wanted to delete the cookies when the user closed the tab for example, I have no option to log out
– daniel vicente
You cannot do this with cookies, only with sessions.
– user187547