node.js - 注销cookies
PHP中文网
PHP中文网 2017-04-17 16:37:09
0
1
711

请问在node.js里面怎么注销cookies.
router.get('/',function(req,res){
req.cookies.destroy(function(err) {

res.redirect('/');
    })
 });

有问题吗?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
阿神

There is res.clearCookie() in express to clear cookies, but there is no destroy method you wrote

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!