How do I remove or delete cookies when users close the browser? I have the code here using cookie-parser in NodeJS with the maxAge property which I do not know what value should I put in order to delete the cookie when users close the browser. I believe Many thanks in advance and greatly appreciated.
res.cookie('authcookie',accessToken,{maxAge:???,httpOnly:true})