How to Fix Azure Portal Session Expired Loop in Safari on Mac
Question details
The user is experiencing a continuous session expired redirect loop when attempting to access the Azure Portal specifically using the Safari browser on a Mac.

- Product
- Safari Browser / Microsoft Azure
- Device & OS
- Mac (macOS)
- Scenario
- Attempting to log into or access portal.azure.com using Safari.
- Observed behavior
- Safari repeatedly redirects the user to an Error/UE_SessionExpired page. Standard troubleshooting like clearing cookies, removing history, and reinstalling macOS does not resolve the issue, though the portal works on other browsers.
Ensure you have your Azure login credentials ready and verify that you have administrative access to change your Safari browser preferences.
Adjust Safari Privacy and Cross-Site Tracking Settings
Modifying Safari's strict privacy features is the most effective way to prevent authentication cookies from being blocked, which typically causes the session loop.
Safari on Mac includes advanced privacy features that block trackers. However, Microsoft Azure relies on certain cross-site authentication cookies to maintain an active session. If these are blocked, the portal will continuously register your session as expired.
Launch Safari on your Mac. In the top menu bar, click on 'Safari' and select 'Settings' (or 'Preferences' on older macOS versions).
Navigate to the 'Privacy' tab. Temporarily uncheck the box next to 'Prevent cross-site tracking' and ensure that 'Block all cookies' is also unchecked.
Switch to the 'Security' tab in the same window and verify that the 'Enable JavaScript' option is checked, as the Azure portal requires it to function.
Completely quit Safari and reopen it, then navigate to portal.azure.com to test the login process.

Configure Website-Specific Settings for Azure
Ensure that Safari's content blockers and pop-up restrictions are not interfering with Azure's specific domain scripts.
Maintain High Productivity with WPS Office
While you troubleshoot cloud portal access issues like the Azure session loop, ensure your local document workflow remains uninterrupted. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office for seamless productivity on your Mac.

Frequently Asked Questions
Why does Safari show a UE_SessionExpired error for Azure?
This error generally occurs when Safari's stringent privacy features, like 'Prevent cross-site tracking', block the authentication cookies that Microsoft Azure requires to maintain your active login session across its services.
Will clearing my Safari cache and cookies fix the Azure portal redirect loop?
While clearing cookies is a standard troubleshooting step, it often doesn't fix this specific issue. If Safari's core privacy settings are configured to block new cross-site tracking cookies, the login loop will persist even after a complete history wipe.
Can I use another browser on my Mac to access the Azure Portal?
Yes. If Safari continues to experience the redirect loop, you can use alternative browsers like Google Chrome or Microsoft Edge, which handle cross-site tracking and authentication cookies differently by default.




