Skip to content

index.js - line 342 - why is it calling the 'createSession()' function on store? #97

@iddogino

Description

@iddogino

I am implementing a custom session store (on Mongo), and I was getting an error about a createSession() function not being implemented. I further investigated and found out that this method was not implemented by the MemoryStore as well, but that it was implemented in the /session/store.js file.

Is that a mistake?

Why not just put req.session = new Session(req, sess); there instead? It makes much more sense...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions