Comments (3)
Very true. It shouldn't be a requirement for using the library, but it's much easier to demonstrate retrieving session data from an accessible store rather than process memory.
If you're having specific difficulties, it would be great to get a little more detail for a diagnosis and fix. Otherwise I'd love to merge some, ah, clarification around the readme!
from supertest-session.
I am confused about the "Accessing session data" as well. Would be nice to have a more detailed tutorial !
from supertest-session.
Thanks for the nudge, @wonay!
As session storage is outside the scope of this library, I think it may be best to simply drop that note from the README (See #25). The goal of the (rather confusing) original example was to show how to access cookies from supertest-session's cookie jar for reuse against a backend session store. But it seems enough to show how to get at them, and leave it up to individual applications to decide if (and how) take to it from there.
That said, store-specific tutorials sound like a fantastic idea! If anyone is working with a specific store and would be willing to link up (or PR a link to) an example, it might save others some setup time (and confusion).
from supertest-session.
Related Issues (20)
- Version 1.0.0 causes 'process out of memory' HOT 3
- pass envs to application HOT 1
- Use conformant API
- legacySession is completely broken HOT 3
- Use superagent for cookie handling HOT 1
- Chaining problem when calling done inside expect HOT 1
- Promise wrapper method HOT 2
- Clarity in Readme HOT 6
- supertest-session is causing mocha test suite to hang HOT 8
- Tests fail for instantiated app
- Cannot retrieve session data stored in prior request HOT 7
- Test stops after when use authenticatedSession HOT 2
- NPM Audit report - Supertest version update. HOT 1
- Server sets two cookies during a request, supertest-session persists only one HOT 2
- Dependency declarations missing for clean load in Yarn PnP / Berry HOT 1
- having the same issue HOT 1
- Impossible to write on req.session
- Example in documentation does not work, because done is not called in before (and after) HOT 2
- Missing documentation for manipulating session BEFORE calling methods HOT 4
- Upgrade to use supertest 1.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertest-session.