balderdashy / balderdashy/sails

session

Open
#4,498 2 comments 0 reactions 0 assignees View on GitHub
does this answer your question?
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I am set session like req.session.userId='xxxx'

but in when the session like req.session.userId == 'xxxx' and sails.log.error(req.session)

show this ` req.session Session {
cookie:
{ path: '/',
_expires: null,
originalMaxAge: null,
httpOnly: true } }`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported req.session.userId assignment and subsequent req.session logging in a minimal Sails application. Investigate the session entry point and configuration involved, then define done as preserving the assigned userId so it is visible on the later request; no source file or test is named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.