HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
expressjs
session
JavaScript2016–2019
expressjs / session

session

Simple session middleware for Express

3Distinct people
3Mentions
0Explicit recommenders
6.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Simple session middleware for Express

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 8:59:20 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year3 dated mentions

Observed mentions: 2016-08-30 16:59:33 UTC to 2019-10-06 05:30:10 UTC.

012016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2019

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC101
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC110

What Hacker News says

1 sources
For a voting URL, you want some value that the server can calculate based on info it has, and that's sufficiently large to not be brute-forceable, and sufficiently unpredictable to not be enumerable. They are 'capability URLs' [1] like a private Google Docs link, or a 'click here to reset your password' token. So 'auth' parameter in the URL is likely the output of a deterministic function of the user and a server-side secret, and possibly a time factor; you can accomplish this with an HMAC. HOTP [2] and TOTP [3] are two concrete schemes that use this method and truncate to a human-friendly size at the end to use it as part of a challenge-response, but you don't want to truncate this here because then the range of values would be brute-forceable. So it's likely just the output of a LARGE-HMAC(secret-key, MixingFunction(user, timewindow)).
Read the rest
Or, if time isn't present, then LARGE-HMAC(secret-key, user). Since the voting URLs are server-generated, the Cookie value must be unrelated. Logging in with a web browser, copying the cookie, and mimicking the same cookies with curl, I'm logged in with curl, but changing either my username or my token I'm not logged in. The opaque value in the cookie is consistent with what you'd expect from a Session ID, which is not surprising. I'm speculating, but the addition of the username may serve as a countermeasure against session guessing attacks (like, being able to quickly distinguish a tampered Session ID from a good one, like these other apps try to [4][5]), or may simply be an implementation detail. [1] https://www.w3.org/TR/capability-urls/ [2] https://en.wikipedia.org/wiki/HMAC-based_One-time_Password_A... [3] https://en.wikipedia.org/wiki/Time-based_One-time_Password_A... [4] http://stackoverflow.com/questions/18751565/detecting-rails-... [5] https://github.com/expressjs/session/issues/176
In Ask HN: How authentication works at HN?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.