Abstraction for sessions using different storage.