See https://jira.duraspace.org/browse/DS-1644

Replace the session variable being queried to determine if a forced redirect to https is needed.