mozilla / node-client-sessions

secure sessions stored in cookies
Mozilla Public License 2.0
759 stars 105 forks source link

Clarify how to establish a new session with passport/express appplication #105

Open eugenio opened 8 years ago

eugenio commented 8 years ago

How to establish a new session with passport in express 4.x application? in my view if I

console.log(req.session_state)

I get "undefined"

Mithgol commented 8 years ago

@eugenio

Is it possible for Passport's session to rewrite Mozilla's session somehow?

Could you try adding { session: false } as the second parameter to the Passport's passport.authenticate method and see what happens?

Mithgol commented 8 years ago

Using two different session middleware modules might be actually a separate issue.

(I've just opened issue #107 because of it.)