Working example of sessions with cookie storage


#1

Sessions work until you reload the page, then they are gone. I believe these are the in memory sessions. Can you please give us an example of a short application with compojure/ring and a login page to validate users using sessions and perhaps a session with a cookie store. Hopefully a session that does not go away when the page is reloaded. Along with this example can you include route validation to check if a user has an active session, to avoid applying this test on every single route.