storing details and getting back session details