Sign-in & Login Problems

How to Fix Azure Portal Session Expired Loop in Safari on Mac

Bushra ParveenBushra Parveen Oct 15, 2026 868 views

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.

How to Fix Azure Portal Session Expired Loop in Safari
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.
Before you start

Ensure you have your Azure login credentials ready and verify that you have administrative access to change your Safari browser preferences.

Solution 1Recommended

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.

1
Open Safari Settings

Launch Safari on your Mac. In the top menu bar, click on 'Safari' and select 'Settings' (or 'Preferences' on older macOS versions).

2
Modify Privacy Settings

Navigate to the 'Privacy' tab. Temporarily uncheck the box next to 'Prevent cross-site tracking' and ensure that 'Block all cookies' is also unchecked.

3
Enable JavaScript

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.

4
Restart Safari

Completely quit Safari and reopen it, then navigate to portal.azure.com to test the login process.

Adjust Safari Privacy and Cross-Site Tracking Settings
Re-enabling Tracking Protection: Once you have successfully logged in and stabilized your session, you can try re-enabling 'Prevent cross-site tracking' to see if the Azure portal continues to work with the established cookies.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation with a clean, familiar tabbed interface.Built-in robust cloud syncing for accessing documents anywhere.Completely free core features for everyday office tasks.
QA img-9

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.