# New Tab Opens Login Page Even When Already Logged In (Node-RED Session Issue)

**URL:** <https://discourse.nodered.org/t/new-tab-opens-login-page-even-when-already-logged-in-node-red-session-issue/93482>\
**Category:** General\
**Tags:** security\
**Created:** [26 November 2024 17:31 UTC](https://discourse.nodered.org/t/new-tab-opens-login-page-even-when-already-logged-in-node-red-session-issue/93482 "2024-11-26T17:31:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoganathanSambath](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/loganathansambath/32/92841_2.png) [@LoganathanSambath](https://discourse.nodered.org/u/LoganathanSambath)\
**Post date:** [26 November 2024 17:31 UTC](https://discourse.nodered.org/t/new-tab-opens-login-page-even-when-already-logged-in-node-red-session-issue/93482/1 "2024-11-26T17:31:57Z")

</div>

I'm working on a Node-RED application, and I'm encountering an issue with session handling when opening a new tab in the same browser.

**Here's what's happening:**

I log in to [http://localhost:1880/api/login](http://localhost:1880/api/login) in one tab, which successfully creates a session and sets a session cookie.

When I open a new tab and navigate to [http://localhost:1880/api/login](http://localhost:1880/api/login), it shows the login page again instead of redirecting to the dashboard or maintaining the session.

If I log in again from the new tab, it creates a new session. This new session overrides the session cookie in the browser, even though the database has multiple sessions for the same user.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 February 2025 17:32 UTC](https://discourse.nodered.org/t/new-tab-opens-login-page-even-when-already-logged-in-node-red-session-issue/93482/2 "2025-02-24T17:32:57Z")

</div>

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