+ Start a Discussion
Lalitha Pavani Rallabandi 13Lalitha Pavani Rallabandi 13 

How to generate unique Session ID in JavaScript

Hi,
How to generate a unique session ID when the user login and logout from the sites login page
ANUTEJANUTEJ (Salesforce Developers) 
Hi Lalitha,

Have you tried checking the below trailhead link that has an implementation of creating a session in web components,

Can you try checking it:

>>https://trailhead.salesforce.com/en/content/learn/projects/build-your-first-app-with-lightning-web-components-open-source/create-the-session-details-web-component

I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be used by others in the future.

Regards,
Anutej