Zero Trust Access not loading login page

I am having an issue with Cloudflare Zero Trust. I am using it to secure a self-hosted website, and have set the Session Duration to expire instantly. When I open the page in private browsing/clear the browser cache, the page laods the Zero Trust login page as expected. However, when I close and open the browser again, the page tries to load without loading the Zero Trust login page