Local on Windows doesn't stay logged in

Issue Summary

I’m currently facing the issue that local on windows 11 doesn’t stay logged in to my account. After closing the program and reopening it again, I need to manually log in to my account. This does not happen everytime I launch the programm, but keeps happening on a regular basis, which is very annoying.

I also had a similar problem on my machine with visual studio code not saving my login information, which was ultimately fixed by clearing my windows temp folder. The issue with local is now happening on a fresh windows 11 installation as well, so I’m assuming that these problems are not related.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    problem with the local application itself

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    yes, but this is unrelated to this specific issue


Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

just close and reopen the application, no further steps necessary


System Details

  • Which version of Local is being used?

  • What Operating System (OS) and OS version is being used?
    Windows 11 Version 22H2 (Build 22621.1105)

  • Attach the Local Log. See this Help Doc for instructions on how to do so:
    local-lightning.log (38.4 KB)

Security Reminder

Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.


Do you have any antivirus, security, or firewall applications that could be blocking Local?

More details about troubleshooting this here: Router Mode

If you want to refresh and try starting with a clean slate could you give the below troubleshooting steps a try?

  • Export any sites that you have on Local and save them to a folder somewhere on your computer.

  • Fully uninstall Local from your computer.

  • Install the latest version of Local on this link.

  • Once installed, please restart the computer.

  • When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

  • Check and see if the issue still persists. If so, please provide us with an updated log. Retrieving Local’s Log File

Keep us posted and we’d be happy to help further!


Hi and thanks for your reply!

I’m not running any applications besides Windows Defender and the Windows firewall. Also I excluded localwp.com and hub.localwp.com from browser extensions such as uBlock Origin. I did a fresh install of Local on my computer, but the issue still occurs.

I also found another thread describing exactly the same issue I’m facing but on macOS:

Here is the updated log file: local-lightning.log (47.9 KB)

Further help is very appreciated!

Hi, @florianw7 It’s tough to say for sure since the issue is intermittent. Did you check in Windows Defender and the Windows firewall to see if anything could be hitting up against Local? Or can you test disabling those to see if issues persist?

In your original message, you mentioned that This does not happen every time I launch the program, but keeps happening on a regular basis, which is very annoying. How regularly are we talking? Even myself I have to log in every so often as the app will not stay logged in indefinitely.

@Nick-B Yeah, i get that. It’s honestly not too much of a problem, as logging back in takes just a couple of seconds.

It keeps happening two or three days a week I‘d say, I am noticing it more, as I currently work daily on a project in Local. Actually today I was working in Local all morning without an issue and as I am writing this reply I started Local once more and found myself logged out again.

I did disable Windows Defender for a while but the issue still occured and I also checked the Windows Firewall settings where local.exe is currently in the allowed list for both public and private networks.

Hi @florianw7

A couple of other thoughts…

Are you running any other developer applications simultaneously?

If you are, or if you aren’t sure if something else is conflicting you could go to Local > Advanced and change your Router Mode to Localhost. If that change results in you staying logged in for a longer stretch then that may point to some other app or program causing a conflict.

Hey @Nick-B,

This might be completely irrrelevant, but if the auth token for the Hub is stored in [User]\AppData\Roaming\Local\hub-api.json on Windows, I noticed that the “expiration” value is set to the current time (Epoch milliseconds) when signing in, and not some point in the future as I might expect.

Being signed in to the Hub doesn’t matter to my process, so I’ve never experienced the issue.

Like I said, not sure if it’s anything…

1 Like

Hi @burt I’m not familiar with that being an issue but great call out! It never hurts to check.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.