Backport #1796 Send user to home page when session has expired