added sessions. also added in configuration for sessions.