Refactored out session information storage.