Why session is stored as String? #10

murvinlai opened this Issue Oct 5, 2011 · 2 comments


None yet
2 participants

I looked into the mongoDB. The session is stored as string:
"_id": String,
"session": String

session is not stored as object. Why is that?


kcbanner commented Oct 5, 2011

It is currently stored as JSON, I did this originally because I had problems with saving Date objects in the session when the Date object had been patched by some library. That problem may no longer be relevant though.


kcbanner commented Apr 14, 2012

There is now a stringify option which you can set to false to store your sessions as native types.

kcbanner closed this Apr 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment