http://expressjs.com/api.html#res.cookie
There is an option path for creating res.cookie?
What is option "path" used for? Docs say it defaults to "/"
I am trying to go session free and store username/id in client side cookie.
Cookies sent to clients can be set for a specific path, not just a domain. That option sets the path. Headers end up looking like:
Set-Cookie: LSID=DQAAAK…Eaem_vYg; Domain=docs.foo.com; Path=/accounts; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly