`this._serialize_session()` includes prototype properties in its results #99

dminkovsky opened this Issue Feb 25, 2014 · 1 comment

2 participants


When this._serialize_session() is called upon a Session object, the resulting object looks like:


Note all the functions in the session key— they're from Session.prototype. Why not just add a hasOwnProperty() check?


Is it really a problem?
MongoDB doesn't persist those attributes and you can override the serialize function with serialize option, or set stringify option to true.

@jdesboeufs jdesboeufs closed this Dec 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment