Implemented functionality to store sessions and reload them in the back end.