Added abstract adapter for session