# HG changeset patch # User Christian Urban # Date 1506356216 -3600 # Node ID 6e08ee0d399d76afea7bfe1b9eeec9d13fc56268 # Parent 9b01bb695b22f7c65c5895af4928eefba558d7bb fixed bug diff -r 9b01bb695b22 -r 6e08ee0d399d progs/App3.js --- a/progs/App3.js Sun Sep 24 18:03:21 2017 +0100 +++ b/progs/App3.js Mon Sep 25 17:16:56 2017 +0100 @@ -24,7 +24,7 @@ } app.get('/', function(req, res){ - var counter = gt_cookie(req.cookies.counter) || 0; + var counter = gt_cookie(req.cookies.counter || "") || 0; res.cookie('counter', mk_cookie(counter + 1)); if (counter >= 5) { res.write('You are a valued customer ' + diff -r 9b01bb695b22 -r 6e08ee0d399d progs/App4.js --- a/progs/App4.js Sun Sep 24 18:03:21 2017 +0100 +++ b/progs/App4.js Mon Sep 25 17:16:56 2017 +0100 @@ -27,7 +27,7 @@ } app.get('/', function(req, res){ - var counter = gt_cookie(req.cookies.counter) || 0; + var counter = gt_cookie(req.cookies.counter || "") || 0; res.cookie('counter', mk_cookie(counter + 1)); if (counter >= 5) { res.write('You are a valued customer ' + diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides01.pdf Binary file slides/slides01.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides02.pdf Binary file slides/slides02.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides03.pdf Binary file slides/slides03.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides04.pdf Binary file slides/slides04.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides05.pdf Binary file slides/slides05.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides06.pdf Binary file slides/slides06.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides07.pdf Binary file slides/slides07.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides08.pdf Binary file slides/slides08.pdf has changed diff -r 9b01bb695b22 -r 6e08ee0d399d slides/slides09.pdf Binary file slides/slides09.pdf has changed