GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I looked into the mongoDB. The session is stored as string:
session is not stored as object. Why is that?
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.
There is now a stringify option which you can set to false to store your sessions as native types.