enable session persistence across server restart; fixes #21, fixes #22