
I fixed it yesterday. The website is in PHP. The issue is that chromium or the underlying technologies of the browser's edge, opera, chrome, and firefox(new version) cannot understand that https://www.example.com/page1.php and https://example.com/page1.php are essentially the same pages, but interestingly safari can. Now since they cannot understand that they cannot enable the session when told to do so. There is a workaround though and which is not to mention the full path when you are moving a page after a condition/logic is met but instead just mention the page name like header("Location: page1.php”);