added optional redis for sessionstorage