npm install -g bower && npm install && bower install && node app
All tests performed in Chrome for OS X.
- set cookie from foo.example.com with no domain
- is it readable by foo.example.com? YES
- is it readable by bar.example.com? NO
- is it overwritable by bar.example.com? NO, because it's a totally separate cookie
- set cookie from foo.example.com with .example.com domain
- is it readable by foo.example.com? YES
- is it readable by bar.example.com? YES
- is it overwritable by bar.example.com? YES
- is it read/write-able by example.com? YES
- set cookie from foo.example.com with no domain
- is it readable by foo.example.com? YES
- is it readable by bar.example.com? NO
- is it overwritable by bar.example.com? NO, because it's a totally separate cookie
- set cookie from foo.example.com with .example.com domain
- is it readable by foo.example.com? YES
- is it readable by bar.example.com? YES
- is it overwritable by bar.example.com? YES
- is it read/write-able by example.com? YES
- Run the app and set a cookie
- Restart the app on a different port
- Is the cookie still readable from the different port? YES