Added test/code to deal with users, including setting/retrieving cookie