NodeJs logout all logged in user

I am new in nodejs I had created a login function in nodejs I have a concern is that possible to I can logout all logged users at a time?
If yes, what would the function an processor to proceed the action.

I am assuming your are using some kind of “session store” to store the session data. Like a database or key value store like Redis. What are you using to handle your session data? How you remove all the sessions will depend on how the session data is stored. It might be as simple as deleting the session records or files or removing keys from a key-value store. It all depends on what you are using. Have any code to show? That would certainly help us help you. :slight_smile:

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