not resetting the session at the end