Created simple session provider class, refactor.