luminus

tobias 2021-05-16T13:12:53.026400Z

Hey @mark549, I've added a couple of routes and handlers to demonstrate setting and retrieving a cookie: https://github.com/jtlocsei/hello-world-web-app/commit/d7afdb420d2765ca97d6befe831bf454ca581c5b

tobias 2021-05-16T13:15:00.026600Z

You probably already know this but you can inspect cookies in Chrome to see what's going on while you're debugging: https://developer.chrome.com/docs/devtools/storage/cookies/

tobias 2021-05-16T13:34:34.026900Z

Live demo: https://guessing-game.mircloud.us/math/choose-level A cookie is used to store chosen difficulty level, and the question you get on the next page depends on the difficulty level you chose.

Mark McWiggins 2021-05-16T15:54:54.027100Z

Thanks!