☚ GZOOL Quality Without A Name

Web Development with Node and Express Chapter 9 - Cookies and Sessions

res.cookie(name, value, { signed: true })
req.session.userName = 'Anonymous';
var colorScheme = req.session.colorScheme || 'dark';
req.session.userName = null; // this sets 'userName' to null, but doesn't remove it
delete req.session.colorScheme; // this removes 'colorScheme'
comments powered by Disqus