Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8298771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:54:20+00:00 2026-06-08T15:54:20+00:00

I have a web tool developed, which uses node.js and socket.io. it’s a one

  • 0

I have a web tool developed, which uses node.js and socket.io. it’s a one page website and uses node.js for getting data from social media website and display on the same page. I would like to add a site specific login system for the website but don’t want to use ‘Express‘ or ‘Passport‘ as it adds lots of overload to the website while it is not needed.

I am newbie with node.js and would like to know if I need to have a login system made with node.js to maintain session of the logged in user?

Note: I need to maintain session to log user data such as login time, search query and may be heatmap.

Thanks in advance. If needed I can explain specific part of the question in detail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:54:23+00:00Added an answer on June 8, 2026 at 3:54 pm

    Using something like Express or Passport (or at least some of connect’s middleware) will definitely be easier in the long run (if your app grows), but if you want to go the ‘manual’ route, here are some starting points:

    1. Cookie Parser: You won’t want to send the auth details with every request as a parameter, so you’ll want to put the session details in a cookie. You can set cookies manually using headers, or with a node module that wraps the API neatly.

    2. Session Storage: You can put all the “login time, queries and heatmap data” in cookies, but it would be neater to just send a session id in the cookie in each request and save the other data server-side in a database. Options are mongoose, redis, etc.

    Since reading the source is very educational, go read connect’s cookieParser and cookieSession. It’s not a lot of code and the API docs include the actual source, so it’s very easy to learn from. Enjoy! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight web app which uses ASP.net Website administration tool for user
I have a web part which uses many SharePoint controls like menu, SPGrid, tool
I have a web site which I download 2-3 MB of raw data from
I have an already developed web application based on struts 1.2 which contains jsp
I'm just getting started with subversion. I have web applications which I need to
I have developed one web application for monitoring azure application (Webrole) by console(EXE) application
I have developed a small C# form application which calls a web service. Everything
I have a web application developed in php which supports functionalities such login/signup post
I have been using the 'Web Site Administration Tool' that you can bring up
We have an in-house PHP web application that is a financial analysis tool for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.