# Flows Starting without login

**URL:** https://discourse.nodered.org/t/flows-starting-without-login/18806
**Category:** General
**Created:** [5 December 2019 02:49 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806 "2019-12-05T02:49:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Devbrat](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devbrat](https://discourse.nodered.org/u/Devbrat)
#### Post date: [5 December 2019 02:49 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806/1 "2019-12-05T02:49:50Z")

</div>

I have enabled authentication in node-red, But I assume according to development, flows are getting started before login and keeps running after logout.  
Is this correct behavior?  
If yes then is there any way to stop this behavior?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [5 December 2019 07:22 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806/2 "2019-12-05T07:22:39Z")

</div>

> [@Devbrat](#):
>
> Is this correct behavior?

Yes. Node-RED runs the flows regardless of whether any editor is currently connected.

There is no built-in way to stop this behaviour - it's the fundamental way of how NR works.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [5 December 2019 07:38 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806/3 "2019-12-05T07:38:04Z")

</div>

Can you explain what you are using node red for that requires this?

---

<div class="post-metadata">

### Author: ![Devbrat](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Devbrat](https://discourse.nodered.org/u/Devbrat)
#### Post date: [5 December 2019 08:10 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806/4 "2019-12-05T08:10:50Z")

</div>

I got that.  
One more question I have, Can I get logout event inside any Node(I mean Node's javascript file)?

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [5 December 2019 08:15 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806/5 "2019-12-05T08:15:02Z")

</div>

> [@Devbrat](#):
>
> If yes then is there any way to stop this behavior?

If running Node-RED as a service, then it will be running all the time in the background.

You can stop and start the service manually or don't run it as service and just start and stop it from the command line (Which is the way I do it)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [5 December 2019 08:35 UTC](https://discourse.nodered.org/t/flows-starting-without-login/18806/6 "2019-12-05T08:35:51Z")

</div>

There are no events in the runtime for anything related to the editor.
