Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Why session is stored as String? #10

Closed
murvinlai opened this Issue · 2 comments

2 participants

@murvinlai

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
Owner

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
Owner

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

@kcbanner kcbanner closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.