adapted SessionManager to use storage adapter