# How to create session id after login is validated

**URL:** <https://discourse.nodered.org/t/how-to-create-session-id-after-login-is-validated/62836>\
**Category:** General\
**Created:** [19 May 2022 07:17 UTC](https://discourse.nodered.org/t/how-to-create-session-id-after-login-is-validated/62836 "2022-05-19T07:17:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rocky](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rocky](https://discourse.nodered.org/u/Rocky)\
**Post date:** [19 May 2022 07:17 UTC](https://discourse.nodered.org/t/how-to-create-session-id-after-login-is-validated/62836/1 "2022-05-19T07:17:59Z")

</div>

I am working on creating a login page for the dashboard which I have created in Node Red. As of now I am able to validate the user name and password entered by user against the data stored in database. But after validating the login credentials I want to create a session ID. This session ID I would want to check if it exist before loading the application dashboards.

I am stuck in creating session id, validating session id before page and also delete session id after user logs out. It will be of great help if some one can help resolve above issues.

---

<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:** [18 July 2022 07:18 UTC](https://discourse.nodered.org/t/how-to-create-session-id-after-login-is-validated/62836/2 "2022-07-18T07:18:13Z")

</div>

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