ChatGPT keeps logging me out every time I refresh

You open ChatGPT, sign in, start a conversation—then refresh the page and suddenly you're staring at the login screen again. This happens to thousands of users every day, and it's almost always caused by browser cookie s

ChatGPT keeps logging me out every time I refresh

You open ChatGPT, sign in, start a conversation—then refresh the page and suddenly you're staring at the login screen again. This happens to thousands of users every day, and it's almost always caused by browser cookie settings, extensions blocking session data, or VPN/network conflicts that break OpenAI's authentication tokens.

What's actually happening

When you log in to ChatGPT, OpenAI stores a session token in your browser's cookies. This token tells the server "this person is authenticated" without making you re-enter your password every time. If your browser can't save that cookie—or if something deletes it between page loads—ChatGPT treats you like a new visitor and kicks you back to the login page.

The most common culprit is privacy-focused browser settings. If you've enabled "Clear cookies and site data when you close the browser" or "Block all cookies," your session token gets wiped the moment you refresh. Safari's Intelligent Tracking Prevention and Firefox's Enhanced Tracking Protection sometimes flag OpenAI's authentication cookies as trackers and silently block them. You won't see an error message—it just fails.

Browser extensions make this worse. Ad blockers like uBlock Origin, privacy tools like Privacy Badger, and script blockers like NoScript can interfere with the authentication flow. Cookie autodelete extensions are especially problematic—they'll nuke your session the instant you navigate away.

VPNs and corporate firewalls add another layer of problems. If your IP address changes mid-session (common with rotating VPN servers), OpenAI's security systems might invalidate your token as a precaution. Some workplace networks block the specific domains OpenAI uses to verify sessions, breaking authentication silently.

How to fix it

1. Check your browser's cookie settings

Open your browser settings and search for "cookies." Make sure cookies are allowed for chatgpt.com and auth0.openai.com. In Chrome, go to Settings → Privacy and security → Cookies and other site data → See all site data and permissions. Search for "openai" and ensure nothing is blocked. In Firefox, go to Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions and add chatgpt.com to the allowed list.

2. Disable browser extensions temporarily

Open an incognito or private browsing window—extensions are usually disabled there by default. Try logging in. If it works, you've confirmed an extension is the problem. Go back to normal browsing and disable extensions one by one until you find the culprit. Ad blockers and privacy tools are the usual suspects.

3. Turn off "clear cookies on exit"

In Chrome, go to Settings → Privacy and security → Cookies and other site data and disable "Clear cookies and site data when you close Chrome." In Firefox, Settings → Privacy & Security → History → uncheck "Clear history when Firefox closes." In Safari, Preferences → Privacy → uncheck "Block all cookies."

4. Add exceptions for OpenAI domains

If you want to keep aggressive privacy settings for most sites but allow ChatGPT to work, add specific exceptions. In your browser's cookie settings, whitelist these domains: `chatgpt.com`, `openai.com`, `auth0.openai.com`. This lets OpenAI store session tokens while blocking cookies everywhere else.

5. Pause your VPN or switch servers

If you're using a VPN, try disconnecting temporarily. If ChatGPT stays logged in without the VPN, the issue is IP address changes or domain blocking. Switch to a VPN server in the same country and avoid servers labelled "rotating" or "dynamic." Some VPN providers offer dedicated IPs that won't trigger OpenAI's security checks.

6. Test a different browser

Download a clean browser like Chrome or Firefox (whichever you're not currently using) and try logging in there. If it works immediately, your original browser has corrupted settings or cached data. You'll need to clear all browsing data—not just cookies—or reset the browser to defaults.

If none of these steps work, you might be dealing with account-level authentication issues that require OpenAI's attention. Check if you're seeing error codes like "Auth0 error" or "Session expired" in the browser console (F12 → Console tab).

If that doesn't work

If you've tried everything above and still get logged out, contact OpenAI support through help.openai.com. Include your browser name and version, a screenshot of your cookie settings, and whether it works in incognito mode. Mention if you're using a VPN or corporate network. OpenAI typically responds within 48 hours for authentication problems.

Export any important chat history before troubleshooting—go to Settings → Data controls → Export data. This prevents losing conversations if you need to reset your browser completely.

Questions people actually ask

Q: Does this happen on the ChatGPT mobile app too?

A: Rarely. The app uses token-based authentication that doesn't rely on browser cookies. If you're getting logged out on mobile, reinstall the app or check if your phone's date and time are set correctly.

Q: Will using incognito mode help permanently?

A: No. Incognito mode proves extensions are the problem, but it's not a long-term solution—you lose chat history when you close the window. Fix the underlying cookie or extension issue instead.

Q: Can OpenAI fix this on their end?

A: Not directly. Session management relies on your browser storing cookies correctly. OpenAI can't override your browser's privacy settings or disable your extensions remotely.

What to remember

  • Allow cookies specifically for chatgpt.com and auth0.openai.com in your browser settings
  • Disable ad blockers and privacy extensions to test if they're interfering
  • Turn off "clear cookies on exit" or create exceptions for OpenAI domains
  • Pause VPNs temporarily or switch to static IP servers
  • Test in incognito mode to isolate browser extensions as the cause

---

*openai-support.com is an independent resource, not affiliated with OpenAI Inc.*

Related help