Fix a force ssl redirection bug that occur when session store disabled.
#27140

supercaracal wants to merge supercaracal:fix-force-ssl-if-session-store-disabled into rails:master

We do not currently have an analysis of these two commits