请问在node.js里面怎么注销cookies. router.get('/',function(req,res){ req.cookies.destroy(function(err) {
res.redirect('/'); }) });
有问题吗?
认证0级讲师
There is res.clearCookie() in express to clear cookies, but there is no destroy method you wrote
There is res.clearCookie() in express to clear cookies, but there is no destroy method you wrote